[Asterisk-code-review] res_crypto: don't complain about directories (asterisk[20])
Friendly Automation
asteriskteam at digium.com
Fri Sep 16 05:57:55 CDT 2022
Friendly Automation has submitted this change. ( https://gerrit.asterisk.org/c/asterisk/+/19216 )
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/+/19216
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 20
Gerrit-Change-Id: I5695fb0c9521f112f754b8362cff2a8f3eff05c5
Gerrit-Change-Number: 19216
Gerrit-PatchSet: 1
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/62c3fc7b/attachment.html>
More information about the asterisk-code-review
mailing list