[Asterisk-code-review] res_crypto: don't complain about directories (asterisk[master])

Friendly Automation asteriskteam at digium.com
Fri Sep 16 05:58:10 CDT 2022


Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/19212 )

Change subject: res_crypto: don't complain about directories
......................................................................

res_crypto: don't complain about directories

ASTERISK-30226 #close

Change-Id: I5695fb0c9521f112f754b8362cff2a8f3eff05c5
---
M res/res_crypto.c
1 file changed, 14 insertions(+), 0 deletions(-)

Approvals:
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit




diff --git a/res/res_crypto.c b/res/res_crypto.c
index efcee7c..bc66318 100644
--- a/res/res_crypto.c
+++ b/res/res_crypto.c
@@ -786,6 +786,9 @@
 			if (!strcmp(ent->d_name, ".") || !strcmp(ent->d_name, "..")) {
 				continue;
 			}
+			if (ent->d_type == DT_DIR) {
+				continue;
+			}
 			if (ent->d_type != DT_REG) {
 				ast_log(LOG_WARNING, "Non-regular file '%s' in keys directory\n", ent->d_name);
 				continue;

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/19212
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I5695fb0c9521f112f754b8362cff2a8f3eff05c5
Gerrit-Change-Number: 19212
Gerrit-PatchSet: 3
Gerrit-Owner: Philip Prindeville <philipp at redfish-solutions.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220916/9168daf0/attachment-0001.html>


More information about the asterisk-code-review mailing list