diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-07 22:05:31 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-07 22:05:31 +0000 |
commit | 6881a2a5e71d2cc2ecfa5c377993c17ea4bcb1d3 (patch) | |
tree | 2a4cb3c3621ae34641d4345a4c27944a59308f65 | |
parent | e61f71745fd8e4682e77917b4db4aeff62072e2c (diff) |
remove extraneous message
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6993 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | ChangeLog | 2 | ||||
-rwxr-xr-x | config.c | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -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> @@ -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; |