aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2024-08-29 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2024-08-29 08:00:00 +0000
commit8c2bb459417f363bb6a8ad54081ba671d039a8f6 (patch)
treeaad19ced246538b89292320155d067a539860478 /modules
parent214e97e115ffc9f9cf56a3576be4bbcab95b07f7 (diff)
downloadpam-8c2bb459417f363bb6a8ad54081ba671d039a8f6.tar.gz
pam-8c2bb459417f363bb6a8ad54081ba671d039a8f6.tar.bz2
pam-8c2bb459417f363bb6a8ad54081ba671d039a8f6.zip
pam_unix: do not check for HAVE_PAM_FAIL_DELAY
Given that pam_fail_delay is always provided by libpam, checking for HAVE_PAM_FAIL_DELAY may have any sense only in third-party modules.
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_unix/support.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/pam_unix/support.c b/modules/pam_unix/support.c
index d11b2758..dfdc9fc1 100644
--- a/modules/pam_unix/support.c
+++ b/modules/pam_unix/support.c
@@ -720,12 +720,10 @@ int _unix_verify_password(pam_handle_t * pamh, const char *name
D(("called"));
-#ifdef HAVE_PAM_FAIL_DELAY
if (off(UNIX_NODELAY, ctrl)) {
D(("setting delay"));
(void) pam_fail_delay(pamh, 2000000); /* 2 sec delay for on failure */
}
-#endif
/* locate the entry for this user */