[svn-commits] kmoore: branch 12 r409918 - in /branches/12: ./ main/config.c

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


Author: kmoore
Date: Wed Mar  5 14:40:44 2014
New Revision: 409918

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

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

Modified:
    branches/12/   (props changed)
    branches/12/main/config.c

Propchange: branches/12/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: branches/12/main/config.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/config.c?view=diff&rev=409918&r1=409917&r2=409918
==============================================================================
--- branches/12/main/config.c (original)
+++ branches/12/main/config.c Wed Mar  5 14:40:44 2014
@@ -1300,7 +1300,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