summaryrefslogtreecommitdiff
path: root/libexec/login_reject
diff options
context:
space:
mode:
authorGleydson Soares <gsoares@cvs.openbsd.org>2016-09-03 10:51:27 +0000
committerGleydson Soares <gsoares@cvs.openbsd.org>2016-09-03 10:51:27 +0000
commitb31f92e0d38131671c97e335d901bfc96989bf98 (patch)
tree7c1431a853f206c4e58c3f4345a969a9f3daccd3 /libexec/login_reject
parent7352194b69a581afbc536e0820a20a83e112e8d4 (diff)
convert to use readpassphrase() instead of DEPRECATED/getpass()
OK millert@
Diffstat (limited to 'libexec/login_reject')
-rw-r--r--libexec/login_reject/login_reject.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/login_reject/login_reject.c b/libexec/login_reject/login_reject.c
index fc082b8839c..3927bc33bbd 100644
--- a/libexec/login_reject/login_reject.c
+++ b/libexec/login_reject/login_reject.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_reject.c,v 1.15 2016/08/16 04:44:38 tedu Exp $ */
+/* $OpenBSD: login_reject.c,v 1.16 2016/09/03 10:51:26 gsoares Exp $ */
/*-
* Copyright (c) 1995 Berkeley Software Design, Inc. All rights reserved.
@@ -43,6 +43,7 @@
#include <errno.h>
#include <login_cap.h>
#include <pwd.h>
+#include <readpassphrase.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
@@ -123,7 +124,7 @@ main(int argc, char *argv[])
exit(1);
}
} else
- getpass("Password:");
+ readpassphrase("Password:", passbuf, sizeof(passbuf), 0);
crypt_checkpass("password", NULL);