summaryrefslogtreecommitdiff
path: root/libexec/login_passwd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2019-12-14 15:22:49 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2019-12-14 15:22:49 +0000
commit5052807a5cfa503764573590f4a8a404d384d26f (patch)
tree6d65b312d34aca1d977f2f7ed1c768a96b7e4daa /libexec/login_passwd
parent0f8cce77320fed4607f8860ace8b84222e2c9f07 (diff)
Return BI_SILENT not BI_AUTH if the challenge service is requested.
This bug was introduced in the login_passwd rewrite back in 2001. From Tom Longshine.
Diffstat (limited to 'libexec/login_passwd')
-rw-r--r--libexec/login_passwd/login.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/login_passwd/login.c b/libexec/login_passwd/login.c
index 09e683a7366..884be32a3cd 100644
--- a/libexec/login_passwd/login.c
+++ b/libexec/login_passwd/login.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login.c,v 1.19 2018/09/30 13:29:24 ajacoutot Exp $ */
+/* $OpenBSD: login.c,v 1.20 2019/12/14 15:22:48 millert Exp $ */
/*-
* Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved.
@@ -137,7 +137,7 @@ main(int argc, char **argv)
password = readpassphrase("Password:", pbuf, sizeof(pbuf), RPP_ECHO_OFF);
break;
case MODE_CHALLENGE:
- fprintf(back, BI_AUTH "\n");
+ fprintf(back, BI_SILENT "\n");
exit(0);
break;
default: