From: Robert Griebl Date: Tue, 16 Jul 2002 21:53:59 +0000 (-0000) Subject: Don't treat a non-existant/-readable config file as an empty config, but X-Git-Tag: 0_60_4~121 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e4f9f3a96060932d799d4e498f83ec6175d75999;p=oweals%2Fbusybox.git 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) --- diff --git a/applets/applets.c b/applets/applets.c index cfcff3a53..1a2741940 100644 --- a/applets/applets.c +++ b/applets/applets.c @@ -392,10 +392,11 @@ int parse_config_file ( void ) parse_error ( "keyword not within section" ); } fclose ( f ); + return 1; } } } - return 1; + return 0; // no config file or not readable (not an error) pe_label: fprintf ( stderr, "Parse error in %s, line %d: %s\n", CONFIG_FILE, lc, err );