aboutsummaryrefslogtreecommitdiff
path: root/debian/patches-applied/pam_unix_initialize_daysleft
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@ubuntu.com>2022-04-25 11:33:27 -0700
committerSteve Langasek <steve.langasek@ubuntu.com>2022-04-25 11:33:27 -0700
commit4d0e1988d7579974fac646e273de017a730244bd (patch)
treeb32b8854ef22afee0c9e8a13e4f8c145a534991d /debian/patches-applied/pam_unix_initialize_daysleft
parentea04efa24985743014da9dd22c0581cbaef82ede (diff)
parented8beed9a35b961f2fe31d47b3730e29b5e22466 (diff)
downloadpam-4d0e1988d7579974fac646e273de017a730244bd.tar.gz
pam-4d0e1988d7579974fac646e273de017a730244bd.tar.bz2
pam-4d0e1988d7579974fac646e273de017a730244bd.zip
pam (1.4.0-12) unstable; urgency=medium
* Don't build with NIS support. This is only used for password changes on NIS systems, and is pulling a large dependency chain into the Essential package set which is not justifiable. [dgit import unpatched pam 1.4.0-12]
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."));