Don't treat a non-existant/-readable config file as an empty config, but
use the compiled in _BB_SUID_* flags (same as for parse errors)
This commit is contained in:
parent
0fe3e62e2c
commit
e4f9f3a960
@ -392,10 +392,11 @@ int parse_config_file ( void )
|
|||||||
parse_error ( "keyword not within section" );
|
parse_error ( "keyword not within section" );
|
||||||
}
|
}
|
||||||
fclose ( f );
|
fclose ( f );
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 1;
|
return 0; // no config file or not readable (not an error)
|
||||||
|
|
||||||
pe_label:
|
pe_label:
|
||||||
fprintf ( stderr, "Parse error in %s, line %d: %s\n", CONFIG_FILE, lc, err );
|
fprintf ( stderr, "Parse error in %s, line %d: %s\n", CONFIG_FILE, lc, err );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user