Reject extraneous arguments

This commit is contained in:
Christopher Wellons 2019-02-03 13:03:40 -05:00
parent 09bb8be32a
commit 94d9a91407

View File

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