diff options
author | Kinsey Moore <kmoore@digium.com> | 2014-03-05 20:41:37 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2014-03-05 20:41:37 +0000 |
commit | b98c2b0e82c602d661916f4ed68a565310334e28 (patch) | |
tree | 06cd783e26340051a42e3b711d6bad4e0b9f7344 /main/config.c | |
parent | b5f8f56bd0e43464471ce82a8284cab7488edf67 (diff) |
config: Fix inverted test
The test of the result of the stat() call was inverted such that its
output was only used if the call failed. This inverts the test so that
the output of stat() is used correctly. This was causing full reloads
on unchanged files.
(closes issue ASTERISK-23383)
Reported by: David Woolley
........
Merged revisions 409916 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 409917 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 409918 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409919 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/config.c')
-rw-r--r-- | main/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/config.c b/main/config.c index a7228c36b..70ef6a804 100644 --- a/main/config.c +++ b/main/config.c @@ -1300,7 +1300,7 @@ static void config_cache_attribute(const char *configfile, enum config_cache_att AST_LIST_INSERT_SORTALPHA(&cfmtime_head, cfmtime, list, filename); } - if (!stat(configfile, &statbuf)) { + if (stat(configfile, &statbuf)) { cfmstat_clear(cfmtime); } else { cfmstat_save(cfmtime, &statbuf); |