X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/28cb0a43091fe76517b457ad3c9c0d03d2a24e5c..e8e24c8054719b9f31c7dc7b7b43342adc07a50c:/ssh-rand-helper.c diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c index 121fa52f..0fcda7ff 100644 --- a/ssh-rand-helper.c +++ b/ssh-rand-helper.c @@ -29,9 +29,13 @@ #include #include #include + +#include #include +#include #include +#include #ifdef HAVE_SYS_UN_H # include @@ -849,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