From b31f92e0d38131671c97e335d901bfc96989bf98 Mon Sep 17 00:00:00 2001 From: Gleydson Soares Date: Sat, 3 Sep 2016 10:51:27 +0000 Subject: convert to use readpassphrase() instead of DEPRECATED/getpass() OK millert@ --- libexec/login_reject/login_reject.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libexec/login_reject') 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 #include #include +#include #include #include #include @@ -123,7 +124,7 @@ main(int argc, char *argv[]) exit(1); } } else - getpass("Password:"); + readpassphrase("Password:", passbuf, sizeof(passbuf), 0); crypt_checkpass("password", NULL); -- cgit v1.2.3