From 8c2bb459417f363bb6a8ad54081ba671d039a8f6 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 29 Aug 2024 08:00:00 +0000 Subject: 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. --- modules/pam_unix/support.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'modules/pam_unix') 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 */ -- cgit v1.2.3