From 3cd1f867ea5668cb8de1f99a68618b7601a99f6a Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Mon, 25 Apr 2022 16:12:04 -0700 Subject: Import pam_1.4.0-13.debian.tar.xz [dgit import tarball pam 1.4.0-13 pam_1.4.0-13.debian.tar.xz] --- patches-applied/pam_unix_initialize_daysleft | 29 ++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 patches-applied/pam_unix_initialize_daysleft (limited to 'patches-applied/pam_unix_initialize_daysleft') diff --git a/patches-applied/pam_unix_initialize_daysleft b/patches-applied/pam_unix_initialize_daysleft new file mode 100644 index 00000000..e304a16e --- /dev/null +++ b/patches-applied/pam_unix_initialize_daysleft @@ -0,0 +1,29 @@ +bug-debian: https://bugs.debian.org/980285 + +commit db6b293046aee4735f3aa2d1713742ed4b533219 +Author: Tomas Mraz +Date: Wed Jul 22 11:47:55 2020 +0200 + + Fix missing initialization of daysleft + + The daysleft otherwise stays uninitialized if there is no shadow entry. + + Regression from commit f5adefa. + + Fixes #255 + + * modules/pam_unix/pam_unix_acct.c (pam_sm_acct_mgmt): Initialize daysleft. + +Index: pam/modules/pam_unix/pam_unix_acct.c +=================================================================== +--- pam.orig/modules/pam_unix/pam_unix_acct.c ++++ pam/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.")); -- cgit v1.2.3