mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
exit cleanly for --help
This commit is contained in:
parent
aa9859413e
commit
28c382d454
@ -923,7 +923,7 @@ static void parse_commandline(const int argc, char *argv[]) {
|
||||
|
||||
if ((argc < 2) || (argc == 2 && strcmp(argv[1], "--help") == 0)) {
|
||||
usage(argv[0]); /* no wwwroot given */
|
||||
exit(EXIT_FAILURE);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
if (getuid() == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user