diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-11-07 22:05:31 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-11-07 22:05:31 +0000 |
commit | 87c87fe158f0a9b537698c3a9ce5a62e5a7648af (patch) | |
tree | 2a4cb3c3621ae34641d4345a4c27944a59308f65 /config.c | |
parent | f09c6bc78eb25da6e6b2bb9a1e3abd76354348c4 (diff) |
remove extraneous message
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'config.c')
-rwxr-xr-x | config.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |