r18632@catbus: nickm | 2008-03-05 17:38:52 -0500

Patch from karsten: proper error message from tor-gencert when no argument is given to --passphrase-fd


svn:r13876
This commit is contained in:
Nick Mathewson 2008-03-05 22:39:49 +00:00
parent f56ba5f3d6
commit 670f4c19af

View File

@ -179,7 +179,7 @@ parse_commandline(int argc, char **argv)
make_new_id = 1;
} else if (!strcmp(argv[i], "--passphrase-fd")) {
if (i+1>=argc) {
fprintf(stderr, "No argument to -m\n");
fprintf(stderr, "No argument to --passphrase-fd\n");
return 1;
}
passphrase_fd = atoi(argv[++i]);