6e02380a0f
Resolves: #2263689 Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
31 lines
987 B
Diff
31 lines
987 B
Diff
From 470b5bdd8fd29d6b35e3a80f9a57bdd4b2438200 Mon Sep 17 00:00:00 2001
|
|
From: Tobias Stoeckmann <tobias@stoeckmann.org>
|
|
Date: Fri, 19 Jan 2024 10:09:00 +0100
|
|
Subject: [PATCH] pam_unix: do not warn if password aging is disabled
|
|
|
|
Later checks will print a warning if daysleft is 0. If password
|
|
aging is disabled, leave daysleft at -1.
|
|
|
|
Resolves: https://github.com/linux-pam/linux-pam/issues/743
|
|
Fixes: 9ebc14085a3b ("pam_unix: allow disabled password aging")
|
|
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
|
|
---
|
|
modules/pam_unix/passverify.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/modules/pam_unix/passverify.c b/modules/pam_unix/passverify.c
|
|
index 5c4f862e..1bc98fa2 100644
|
|
--- a/modules/pam_unix/passverify.c
|
|
+++ b/modules/pam_unix/passverify.c
|
|
@@ -314,7 +314,6 @@ PAMH_ARG_DECL(int check_shadow_expiry,
|
|
}
|
|
if (spent->sp_lstchg < 0) {
|
|
D(("password aging disabled"));
|
|
- *daysleft = 0;
|
|
return PAM_SUCCESS;
|
|
}
|
|
if (curdays < spent->sp_lstchg) {
|
|
--
|
|
2.43.0
|
|
|