Make empire, empsched and files catch extra operands
This also avoids a dead increment ap++ in src/client/main.c reported by the Clang Static Analyzer.
This commit is contained in:
parent
fe0ef18e2b
commit
390841a40a
3 changed files with 17 additions and 0 deletions
|
@ -138,6 +138,11 @@ main(int argc, char **argv)
|
|||
}
|
||||
uname = pwd->pw_name;
|
||||
}
|
||||
if (*ap) {
|
||||
fprintf(stderr, "%s: extra operand %s\n", argv[0], *ap);
|
||||
fprintf(stderr, "Try -h for help.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
getsose();
|
||||
if (auxfname && (auxfp = fopen(auxfname, "a")) == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue