exit cleanly for `--help`

This commit is contained in:
Lukas Stabe 2014-02-05 23:49:09 +01:00 committed by Emil Mikulic
parent aa9859413e
commit 28c382d454
1 changed files with 1 additions and 1 deletions

View File

@ -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)