projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fe3e62
)
Don't treat a non-existant/-readable config file as an empty config, but
author
Robert Griebl
<griebl@gmx.de>
Tue, 16 Jul 2002 21:53:59 +0000
(21:53 -0000)
committer
Robert Griebl
<griebl@gmx.de>
Tue, 16 Jul 2002 21:53:59 +0000
(21:53 -0000)
use the compiled in _BB_SUID_* flags (same as for parse errors)
applets/applets.c
patch
|
blob
|
history
diff --git
a/applets/applets.c
b/applets/applets.c
index cfcff3a532ad3c32be182c9abcb145a8a633a122..1a274194036c3859aeec430c999e0fbf17881eb3 100644
(file)
--- 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 );