diff options
author | millert <millert@openbsd.org> | 2019-12-14 15:22:48 +0000 |
---|---|---|
committer | millert <millert@openbsd.org> | 2019-12-14 15:22:48 +0000 |
commit | b4d71eb7c05ce44efa40ad23958e7304abd440cf (patch) | |
tree | 33c817f4f59a8b16273350cf9f437c3deb3e4f56 | |
parent | Add sizes for free() in eso(4). (diff) | |
download | wireguard-openbsd-b4d71eb7c05ce44efa40ad23958e7304abd440cf.tar.xz wireguard-openbsd-b4d71eb7c05ce44efa40ad23958e7304abd440cf.zip |
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.
-rw-r--r-- | libexec/login_passwd/login.c | 4 |
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: |