From: Philip Prindeville Date: Tue, 13 Sep 2022 19:41:45 +0000 (-0600) Subject: res_crypto: don't complain about directories X-Git-Tag: 18.16.0-rc1~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fd75c718d10875fbf6a6f5326256e5faec3705f;p=thirdparty%2Fasterisk.git res_crypto: don't complain about directories ASTERISK-30226 #close Change-Id: I5695fb0c9521f112f754b8362cff2a8f3eff05c5 --- diff --git a/res/res_crypto.c b/res/res_crypto.c index efcee7cffd..bc66318333 100644 --- a/res/res_crypto.c +++ b/res/res_crypto.c @@ -786,6 +786,9 @@ static void crypto_load(int ifd, int ofd) 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;