From e4f9f3a96060932d799d4e498f83ec6175d75999 Mon Sep 17 00:00:00 2001 From: Robert Griebl Date: Tue, 16 Jul 2002 21:53:59 +0000 Subject: 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) --- applets/applets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applets/applets.c b/applets/applets.c index cfcff3a..1a27419 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 ); -- cgit v1.1