r18634@catbus: nickm | 2008-03-05 17:39:44 -0500

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


svn:r13877
This commit is contained in:
Nick Mathewson 2008-03-05 22:39:54 +00:00
parent 1cdf610622
commit 77edf15f0d
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,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]);