From: Bodo Möller Date: Fri, 6 Aug 1999 11:18:44 +0000 (+0000) Subject: Dont' assume that something starting with '-' is a filename -- X-Git-Tag: OpenSSL_0_9_4~22 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=e42979f2c58e0ec41cb46400ec0a11482ef9058c Dont' assume that something starting with '-' is a filename -- "openssl gendsa -help" now prints the usage summary, not error messages that now file -help was found. --- diff --git a/apps/gendsa.c b/apps/gendsa.c index dc0b2165fd..5f00b89bb0 100644 --- a/apps/gendsa.c +++ b/apps/gendsa.c @@ -118,7 +118,7 @@ int MAIN(int argc, char **argv) else if (strcmp(*argv,"-idea") == 0) enc=EVP_idea_cbc(); #endif - else if (dsaparams == NULL) + else if (**argv != '-' && dsaparams == NULL) { dsaparams = *argv; }