X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/22bbb3e653845e03f8c19eee3a873b0302e329f0..HEAD:/ssh-rand-helper.c diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c index ebee9001..0fcda7ff 100644 --- a/ssh-rand-helper.c +++ b/ssh-rand-helper.c @@ -30,15 +30,23 @@ #include #include +#include +#include +#include + #include +#include #ifdef HAVE_SYS_UN_H # include #endif +#include #include #include #include +#include +#include #include #include @@ -845,11 +853,17 @@ main(int argc, char **argv) default: error("Invalid commandline option"); usage(); + exit(1); } } - log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1); + if (argc != optind) { + error("Unexpected commandline arguments."); + usage(); + exit(1); + } + #ifdef USE_SEED_FILES prng_read_seedfile(); #endif