[asterisk-commits] kmoore: branch 11 r409917 - in /branches/11: ./ main/config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 5 14:37:55 CST 2014


Author: kmoore
Date: Wed Mar  5 14:37:51 2014
New Revision: 409917

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

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

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

Modified: branches/11/main/config.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/config.c?view=diff&rev=409917&r1=409916&r2=409917
==============================================================================
--- branches/11/main/config.c (original)
+++ branches/11/main/config.c Wed Mar  5 14:37:51 2014
@@ -1266,7 +1266,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 asterisk-commits mailing list