From 87c87fe158f0a9b537698c3a9ce5a62e5a7648af Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" <kpfleming@digium.com> Date: Mon, 7 Nov 2005 22:05:31 +0000 Subject: [PATCH] remove extraneous message git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6993 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- ChangeLog | 2 ++ config.c | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5de6719e18..a829118fae 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-11-07 Kevin P. Fleming <kpfleming@digium.com> + * config.c (config_text_file_load): don't generate log message when stat() fails + * many files: clean up application documentation to not refer to return values, since they cannot be used in the dialplan (work done by Neil Lewis) 2005-11-06 Russell Bryant <russell@digium.com> diff --git a/config.c b/config.c index beb2f4df3c..16c1547422 100755 --- a/config.c +++ b/config.c @@ -572,10 +572,9 @@ static struct ast_config *config_text_file_load(const char *database, const char ast_copy_string(fn, globbuf.gl_pathv[i], sizeof(fn)); #endif do { - if (stat(fn, &statbuf)) { - ast_log(LOG_WARNING, "Cannot stat() '%s', ignoring\n", fn); + if (stat(fn, &statbuf)) continue; - } + if (!S_ISREG(statbuf.st_mode)) { ast_log(LOG_WARNING, "'%s' is not a regular file, ignoring\n", fn); continue; -- GitLab