From e0f485fa5cca21ba72520a42ad3fed507a62136c466cfd3f946c080808b3faa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20M=C3=B6llers?= Date: Mon, 16 Nov 2020 14:19:30 +0000 Subject: [PATCH] Accepting request 848315 from home:jmoellers:branches:Linux-PAM OBS-URL: https://build.opensuse.org/request/show/848315 OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam?expand=0&rev=225 --- pam-bsc1178727-initialize-daysleft.patch | 13 +++++++++++++ pam.changes | 9 +++++++++ pam.spec | 2 ++ 3 files changed, 24 insertions(+) create mode 100644 pam-bsc1178727-initialize-daysleft.patch diff --git a/pam-bsc1178727-initialize-daysleft.patch b/pam-bsc1178727-initialize-daysleft.patch new file mode 100644 index 0000000..fa3a9b4 --- /dev/null +++ b/pam-bsc1178727-initialize-daysleft.patch @@ -0,0 +1,13 @@ +Index: Linux-PAM-1.4.0/modules/pam_unix/pam_unix_acct.c +=================================================================== +--- Linux-PAM-1.4.0.orig/modules/pam_unix/pam_unix_acct.c ++++ Linux-PAM-1.4.0/modules/pam_unix/pam_unix_acct.c +@@ -189,7 +189,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int + unsigned long long ctrl; + const void *void_uname; + const char *uname; +- int retval, daysleft; ++ int retval, daysleft = -1; + char buf[256]; + + D(("called.")); diff --git a/pam.changes b/pam.changes index dd0bef9..c8fc046 100644 --- a/pam.changes +++ b/pam.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Nov 13 09:13:18 UTC 2020 - Josef Möllers + +- Initialize pam_unix pam_sm_acct_mgmt() local variable "daysleft" + to avoid spurious (and misleading) + Warning: your password will expire in ... days. + fixed upstream with commit db6b293046a + [bsc#1178727, pam-bsc1178727-initialize-daysleft.patch] + ------------------------------------------------------------------- Tue Nov 10 11:09:39 UTC 2020 - Thorsten Kukuk diff --git a/pam.spec b/pam.spec index cfaf920..bc077a8 100644 --- a/pam.spec +++ b/pam.spec @@ -48,6 +48,7 @@ Source12: pam-login_defs-check.sh Patch2: pam-limit-nproc.patch Patch4: pam-hostnames-in-access_conf.patch Patch5: pam-xauth_ownership.patch +Patch6: pam-bsc1178727-initialize-daysleft.patch BuildRequires: audit-devel BuildRequires: bison BuildRequires: cracklib-devel @@ -141,6 +142,7 @@ cp -a %{SOURCE12} . %patch2 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 %build bash ./pam-login_defs-check.sh