[Asterisk-cvs] asterisk ChangeLog,1.40,1.41 config.c,1.82,1.83

kpfleming kpfleming
Mon Nov 7 17:14:25 CST 2005


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv13072

Modified Files:
	ChangeLog config.c 
Log Message:
remove extraneous message


Index: ChangeLog
===================================================================
RCS file: /usr/cvsroot/asterisk/ChangeLog,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- ChangeLog	7 Nov 2005 22:01:21 -0000	1.40
+++ ChangeLog	7 Nov 2005 22:05:31 -0000	1.41
@@ -1,5 +1,7 @@
 2005-11-07  Kevin P. Fleming  <kpfleming at digium.com>
 
+	* config.c (config_text_file_load): don't generate log message when stat() fails
+
 	* many files: clean up application documentation to not refer to return values, since they cannot be used in the dialplan (work done by Neil Lewis)
 
 2005-11-06  Russell Bryant <russell at digium.com>

Index: config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/config.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- config.c	1 Nov 2005 21:53:29 -0000	1.82
+++ config.c	7 Nov 2005 22:05:31 -0000	1.83
@@ -572,10 +572,9 @@
 				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;




More information about the svn-commits mailing list