aboutsummaryrefslogtreecommitdiff
path: root/debian/patches-applied/pam_unix_initialize_daysleft
diff options
context:
space:
mode:
authorSam Hartman <hartmans@debian.org>2021-08-26 12:43:23 -0700
committerSam Hartman <hartmans@debian.org>2021-08-26 12:43:23 -0700
commit1d37a5c06c9b6f4eb60c99daccfaebe3b2bf77aa (patch)
tree1be72cc3e88b08cb714b9cd4a2dc4ec210f62c96 /debian/patches-applied/pam_unix_initialize_daysleft
parentea04efa24985743014da9dd22c0581cbaef82ede (diff)
parent58476aa622ff2f622719b2cb1c586e4a93b5a801 (diff)
downloadpam-1d37a5c06c9b6f4eb60c99daccfaebe3b2bf77aa.tar.gz
pam-1d37a5c06c9b6f4eb60c99daccfaebe3b2bf77aa.tar.bz2
pam-1d37a5c06c9b6f4eb60c99daccfaebe3b2bf77aa.zip
pam (1.4.0-10) unstable; urgency=medium
* Fix syntax error in libpam0g.postinst when a systemd unit fails, Closes: #992538 * Include upstream patch not to use crypt_checksalt; without this passwords set prior to bullseye were considered expired, Closes: #992848 * Support DPKG_ROOT for pam-auth-update, thanks Johannes 'josch' Schauer Closes: #983427 [dgit import unpatched pam 1.4.0-10]
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 00000000..e304a16e
--- /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."));