summaryrefslogtreecommitdiffstats
path: root/debian/patches-applied/pam_unix_initialize_daysleft
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:01:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 12:01:37 +0000
commitdcd7a5748ef6820e3e0d386139d9dd946f0d71fa (patch)
tree66900ada5e764c3422a91836695cdef113bbb883 /debian/patches-applied/pam_unix_initialize_daysleft
parentAdding upstream version 1.4.0. (diff)
downloadpam-debian/1.4.0-9+deb11u1.tar.xz
pam-debian/1.4.0-9+deb11u1.zip
Adding debian version 1.4.0-9+deb11u1.debian/1.4.0-9+deb11u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches-applied/pam_unix_initialize_daysleft')
-rw-r--r--debian/patches-applied/pam_unix_initialize_daysleft29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches-applied/pam_unix_initialize_daysleft b/debian/patches-applied/pam_unix_initialize_daysleft
new file mode 100644
index 0000000..e304a16
--- /dev/null
+++ b/debian/patches-applied/pam_unix_initialize_daysleft
@@ -0,0 +1,29 @@
+bug-debian: https://bugs.debian.org/980285
+
+commit db6b293046aee4735f3aa2d1713742ed4b533219
+Author: Tomas Mraz <tmraz@fedoraproject.org>
+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."));