- rprintf(FLOG, "%s Unexpected EOF in the configuration file: %s\n", func, bufr );
+ rprintf(FLOG, "%s Unexpected EOF in the config file: %s\n", func, bufr );
- i = end; /* New string starts here. */
- vstart = end; /* New string is parameter value. */
- bufr[i] = '\0'; /* New string is nul, for now. */
+ i = vstart = end; /* New string starts here. */
+ c = EatWhitespace(InFile);
rprintf(FLOG, "%s Unexpected end-of-file at: %s\n", func, bufr );
return( True );
rprintf(FLOG, "%s Unexpected end-of-file at: %s\n", func, bufr );
return( True );
- if (do_stat(include, &sb) < 0)
+ if (do_stat(include, &sb) < 0) {
+ rsyserr(FLOG, errno, "unable to stat config file \"%s\"", include);
- if (!(d = opendir(include)))
+ if (!(d = opendir(include))) {
+ rsyserr(FLOG, errno, "unable to open config dir \"%s\"", include);
memset(&conf_list, 0, sizeof conf_list);
while ((di = readdir(d)) != NULL) {
char *dname = d_name(di);
memset(&conf_list, 0, sizeof conf_list);
while ((di = readdir(d)) != NULL) {
char *dname = d_name(di);
continue;
bpp = EXPAND_ITEM_LIST(&conf_list, char *, 32);
pathjoin(buf, sizeof buf, include, dname);
continue;
bpp = EXPAND_ITEM_LIST(&conf_list, char *, 32);
pathjoin(buf, sizeof buf, include, dname);
static FILE *OpenConfFile( char *FileName )
/* ------------------------------------------------------------------------ **
static FILE *OpenConfFile( char *FileName )
/* ------------------------------------------------------------------------ **
- rsyserr(FLOG, errno, "unable to open configuration file \"%s\"",
+ rsyserr(FLOG, errno, "unable to open config file \"%s\"",