mirror of
https://github.com/skeeto/endlessh.git
synced 2025-12-08 22:23:23 +00:00
Reject extraneous arguments
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user