[svn-commits] kmoore: branch 1.8 r409916 - /branches/1.8/main/config.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 5 14:31:11 CST 2014


Author: kmoore
Date: Wed Mar  5 14:31:09 2014
New Revision: 409916

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=409916
Log:
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

Modified:
    branches/1.8/main/config.c

Modified: branches/1.8/main/config.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/config.c?view=diff&rev=409916&r1=409915&r2=409916
==============================================================================
--- branches/1.8/main/config.c (original)
+++ branches/1.8/main/config.c Wed Mar  5 14:31:09 2014
@@ -1146,7 +1146,7 @@
 		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);




More information about the svn-commits mailing list