From e42979f2c58e0ec41cb46400ec0a11482ef9058c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Fri, 6 Aug 1999 11:18:44 +0000 Subject: [PATCH] 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. --- apps/gendsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- GitLab