X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/35d1c2def8541a7ba2cf1e38b76a46435b028b1a..239542dc0f6f2d1aa27862c90e38316f48ebc563:/ssh-rand-helper.c diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c index 10c9905b..0fcda7ff 100644 --- a/ssh-rand-helper.c +++ b/ssh-rand-helper.c @@ -32,8 +32,10 @@ #include #include +#include #include +#include #ifdef HAVE_SYS_UN_H # include @@ -851,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