Blame SOURCES/0166-sulogin-make-getpasswd-.-return-NULL-on-D.patch

ad9577
From c19feb058ff5883ab7255241d13732ab66bf44f0 Mon Sep 17 00:00:00 2001
ad9577
From: Andreas Henriksson <andreas@fatal.se>
ad9577
Date: Mon, 28 Nov 2016 17:24:49 +0100
ad9577
Subject: [PATCH 166/173] sulogin: make getpasswd(...) return NULL on ^D
ad9577
MIME-Version: 1.0
ad9577
Content-Type: text/plain; charset=UTF-8
ad9577
Content-Transfer-Encoding: 8bit
ad9577
ad9577
This makes the caller bail out early instead of evaluating the
ad9577
input as a password.
ad9577
ad9577
Reported-by: Bjørn Mork <bjorn@mork.no>
ad9577
Addresses: http://bugs.debian.org/846112
ad9577
Upstream: http://github.com/karelzak/util-linux/commit/60dea9d187caa700e42f37c7955116f71be912d5
ad9577
Addresses: http://bugzilla.redhat.com/show_bug.cgi?id=1561200
ad9577
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
ad9577
---
ad9577
 login-utils/sulogin.c | 1 +
ad9577
 1 file changed, 1 insertion(+)
ad9577
ad9577
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
ad9577
index a6918282e..7ec349953 100644
ad9577
--- a/login-utils/sulogin.c
ad9577
+++ b/login-utils/sulogin.c
ad9577
@@ -661,6 +661,7 @@ static char *getpasswd(struct console *con)
ad9577
 				ptr--;
ad9577
 			break;
ad9577
 		case CEOF:
ad9577
+			ret = NULL;
ad9577
 			goto quit;
ad9577
 		default:
ad9577
 			if ((size_t)(ptr - &pass[0]) >= (sizeof(pass) -1 )) {
ad9577
-- 
ad9577
2.14.4
ad9577