X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/403a29ac57c4ae2494d8713105d85458dc85ef85..5deb8b6e1fa1e779d04da2ddb6cafcedf257b641:/ssh-rand-helper.c diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c index 3a290366..0fcda7ff 100644 --- a/ssh-rand-helper.c +++ b/ssh-rand-helper.c @@ -30,7 +30,12 @@ #include #include +#include +#include +#include + #include +#include #ifdef HAVE_SYS_UN_H # include @@ -40,6 +45,8 @@ #include #include #include +#include +#include #include #include @@ -846,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