diff options
author | Robert Griebl | 2002-07-16 21:53:59 +0000 |
---|---|---|
committer | Robert Griebl | 2002-07-16 21:53:59 +0000 |
commit | e4f9f3a96060932d799d4e498f83ec6175d75999 (patch) | |
tree | 5c0c3b387897dbca512b96c040c9fb5052aeb9e7 | |
parent | 0fe3e62e2c48bd8063d80a17b8f34e5eb4c9ad06 (diff) | |
download | busybox-e4f9f3a96060932d799d4e498f83ec6175d75999.zip busybox-e4f9f3a96060932d799d4e498f83ec6175d75999.tar.gz |
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)
-rw-r--r-- | applets/applets.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 ); |