forked from extern/endlessh
Reject extraneous arguments
This commit is contained in:
parent
09bb8be32a
commit
94d9a91407
@ -492,6 +492,11 @@ main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
if (argv[optind]) {
|
||||
fprintf(stderr, "endlessh: too many arguments\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/* Log configuration */
|
||||
config_log(&config);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user