]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sulogin: don't run if not found passww entry [coverity scan]
authorKarel Zak <kzak@redhat.com>
Wed, 27 Mar 2013 13:50:52 +0000 (14:50 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Mar 2013 13:50:52 +0000 (14:50 +0100)
commitad85c7bad93613fd4b3110b6dac7fd2fea7295f3
tree6a17013ee996ed4596463365940d41ec92b49c65
parent3c7fbc82da796c21fd107221a218397af0764d30
sulogin: don't run if not found passww entry [coverity scan]

sulogin(8) should not run if there is no /etc/{passwd,shadow} entry
and --force command line option is no specified otherwise NULL pointer
dereference is possible.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/sulogin.c