SHA256
1
0
forked from pool/pam

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
This commit is contained in:
Josef Möllers 2020-11-16 14:19:30 +00:00 committed by Git OBS Bridge
parent f65a31291f
commit e0f485fa5c
3 changed files with 24 additions and 0 deletions

View File

@ -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."));

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Fri Nov 13 09:13:18 UTC 2020 - Josef Möllers <josef.moellers@suse.com>
- 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 <kukuk@suse.com>

View File

@ -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