summaryrefslogtreecommitdiffstats
path: root/contrib/opie
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>2002-01-09 13:36:26 +0000
committerjoerg <joerg@FreeBSD.org>2002-01-09 13:36:26 +0000
commit2590927e9ef5241c7605b6aaa7c6e8d3276b5407 (patch)
tree7555bd66fdcb3af3c935d6e98dbef3583af603d9 /contrib/opie
parent108589a3f212ea5236b1bcdf55a19549e8c37afd (diff)
downloadFreeBSD-src-2590927e9ef5241c7605b6aaa7c6e8d3276b5407.zip
FreeBSD-src-2590927e9ef5241c7605b6aaa7c6e8d3276b5407.tar.gz
Make the -a flag to opiekey(1) actually work as advertised.
Reviewed by: ache, audit, security MFC after: 1 week
Diffstat (limited to 'contrib/opie')
-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