diff options
author | Steve Langasek <vorlon@debian.org> | 2021-12-06 11:11:31 -0800 |
---|---|---|
committer | Steve Langasek <vorlon@debian.org> | 2021-12-06 11:11:31 -0800 |
commit | a3d540fc9aab544f53eb4d2035454a12820bd02d (patch) | |
tree | c0ff911dfb5b5d5e719c747165c526681420cb79 /debian/patches-applied/pam_unix_initialize_daysleft | |
parent | ea04efa24985743014da9dd22c0581cbaef82ede (diff) | |
parent | 17efd306e797a3fe46564896de31583c2c99f338 (diff) | |
download | pam-a3d540fc9aab544f53eb4d2035454a12820bd02d.tar.gz pam-a3d540fc9aab544f53eb4d2035454a12820bd02d.tar.bz2 pam-a3d540fc9aab544f53eb4d2035454a12820bd02d.zip |
pam (1.4.0-11) unstable; urgency=medium
* Whitespace fixes in debconf templates.
[ Sergio Durigan Junior ]
* d/p/pam_env-allow-environment-files-without-EOL-at-EOF.patch:
Allow /etc/environment files without EOL at EOF. In other words,
allow files without a newline at the end. (LP: #1953201)
[dgit import unpatched pam 1.4.0-11]
Diffstat (limited to 'debian/patches-applied/pam_unix_initialize_daysleft')
-rw-r--r-- | debian/patches-applied/pam_unix_initialize_daysleft | 29 |
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.")); |