]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sulogin: make getpasswd(...) return NULL on ^D
authorAndreas Henriksson <andreas@fatal.se>
Mon, 28 Nov 2016 16:24:49 +0000 (17:24 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2017 14:47:11 +0000 (15:47 +0100)
commit51e22ab6dfbee7ca3ff8515f5a835242fde9f2dd
tree69197ae39717c425e43ef445552fbe11d2e508eb
parent2b502676a190b492020aae804018259c5fed8a68
sulogin: make getpasswd(...) return NULL on ^D

This makes the caller bail out early instead of evaluating the
input as a password.

Reported-by: Bjørn Mork <bjorn@mork.no>
Addresses: http://bugs.debian.org/846112
Signed-off-by: Andreas Henriksson <andreas@fatal.se>
login-utils/sulogin.c