diff options
author | sandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-07-16 21:53:59 +0000 |
---|---|---|
committer | sandman <sandman@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2002-07-16 21:53:59 +0000 |
commit | 4578684c9cd35839414e90f325a0e524032ea7b5 (patch) | |
tree | 5c0c3b387897dbca512b96c040c9fb5052aeb9e7 | |
parent | d66518b4e298ab73ac9435b491fd4305c9099971 (diff) | |
download | busybox-w32-4578684c9cd35839414e90f325a0e524032ea7b5.tar.gz busybox-w32-4578684c9cd35839414e90f325a0e524032ea7b5.tar.bz2 busybox-w32-4578684c9cd35839414e90f325a0e524032ea7b5.zip |
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)
git-svn-id: svn://busybox.net/trunk/busybox@5062 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 cfcff3a53..1a2741940 100644 --- a/applets/applets.c +++ b/applets/applets.c | |||
@@ -392,10 +392,11 @@ int parse_config_file ( void ) | |||
392 | parse_error ( "keyword not within section" ); | 392 | parse_error ( "keyword not within section" ); |
393 | } | 393 | } |
394 | fclose ( f ); | 394 | fclose ( f ); |
395 | return 1; | ||
395 | } | 396 | } |
396 | } | 397 | } |
397 | } | 398 | } |
398 | return 1; | 399 | return 0; // no config file or not readable (not an error) |
399 | 400 | ||
400 | pe_label: | 401 | pe_label: |
401 | fprintf ( stderr, "Parse error in %s, line %d: %s\n", CONFIG_FILE, lc, err ); | 402 | fprintf ( stderr, "Parse error in %s, line %d: %s\n", CONFIG_FILE, lc, err ); |