X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/e5c27607ef483d2177762093bf1ae8f126bb182a..HEAD:/ssh-rand-helper.c diff --git a/ssh-rand-helper.c b/ssh-rand-helper.c index 605de72f..0fcda7ff 100644 --- a/ssh-rand-helper.c +++ b/ssh-rand-helper.c @@ -28,12 +28,25 @@ #include #include #include +#include + +#include +#include +#include + +#include +#include #ifdef HAVE_SYS_UN_H # include #endif +#include +#include +#include #include +#include +#include #include #include @@ -840,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