]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: clean FAIL_DELAY usage
authorKarel Zak <kzak@redhat.com>
Mon, 7 Nov 2011 10:04:44 +0000 (11:04 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Nov 2011 10:04:44 +0000 (11:04 +0100)
commitf950752b90a5d9f2a6733aeaa30569459514ff9f
treefbf737622900d92ac6b8de1e15be5e0271388372
parentd254c1dbae5790d0c5a36c3a4620a8109b2b2e59
login: clean FAIL_DELAY usage

... with this patch: login(1) always uses sleep(FAIL_DELAY) before
exit() if user is not authenticated or his PAM session is not fully
initialized.

Note that user has three attempts to write his password before
login(1) is terminated.

Reported-by: Francesco Cosoleto <cosoleto@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.1
login-utils/login.c