From 32eb5fea1a2c9bb9c09f9c1022eecbf30f131ee9 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Wed, 9 Jan 2002 13:36:26 +0000 Subject: [PATCH] Make the -a flag to opiekey(1) actually work as advertised. Reviewed by: ache, audit, security MFC after: 1 week --- contrib/opie/opiekey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/opie/opiekey.c b/contrib/opie/opiekey.c index 66e6b7bedc1d..32a1f9c91032 100644 --- a/contrib/opie/opiekey.c +++ b/contrib/opie/opiekey.c @@ -119,7 +119,7 @@ static void getsecret FUNCTION((secret, promptextra, retype), char *secret AND c } memset(verify, 0, sizeof(verify)); } - if (!(flags & 2) && opiepasscheck(secret)) { + if (!(flags & 2) && !aflag && opiepasscheck(secret)) { memset(secret, 0, sizeof(secret)); fprintf(stderr, "Secret pass phrases must be between %d and %d characters long.\n", OPIE_SECRET_MIN, OPIE_SECRET_MAX); exit(1);