Fix #51799, when glob returns nothing, it was handle as an error instead of a warning.

This commit is contained in:
Jérôme Loyet 2010-05-12 18:29:09 +00:00
parent 1fd85e29de
commit 3e51f4a966

View File

@ -660,8 +660,7 @@ static void fpm_conf_ini_parser_include(char *inc, void *arg TSRMLS_DC) /* {{{ *
if ((i = glob(inc, GLOB_ERR | GLOB_MARK | GLOB_NOSORT, NULL, &g)) != 0) {
#ifdef GLOB_NOMATCH
if (i == GLOB_NOMATCH) {
zlog(ZLOG_STUFF, ZLOG_ERROR, "Nothing match the include pattern '%s' from %s at line %d.", inc, filename, ini_lineno);
*error = 1;
zlog(ZLOG_STUFF, ZLOG_WARNING, "Nothing match the include pattern '%s' from %s at line %d.", inc, filename, ini_lineno);
return;
}
#endif /* GLOB_NOMATCH */