summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/opie/opiekey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/opie/opiekey.c b/contrib/opie/opiekey.c
index 66e6b7b..32a1f9c 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);
OpenPOWER on IntegriCloud