]> 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>
Wed, 7 Dec 2016 12:32:42 +0000 (13:32 +0100)
commit60dea9d187caa700e42f37c7955116f71be912d5
tree9fad920a7d089adc623a5ea5d1a910a07faef6ed
parent809869ca8c3d5d548adac9648dbcea2f641a878b
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