summaryrefslogtreecommitdiff
path: root/debian/patches-applied
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches-applied')
-rw-r--r--debian/patches-applied/pam_mail-fix-quiet37
-rw-r--r--debian/patches-applied/series1
2 files changed, 38 insertions, 0 deletions
diff --git a/debian/patches-applied/pam_mail-fix-quiet b/debian/patches-applied/pam_mail-fix-quiet
new file mode 100644
index 00000000..7673effa
--- /dev/null
+++ b/debian/patches-applied/pam_mail-fix-quiet
@@ -0,0 +1,37 @@
+Make quiet option of pam_mail work. Fixes http://bugs.debian.org/439268
+
+Author: Andreas Henriksson <andreas@fatal.se>
+Upstream status: applied in upstream CVS September 2008
+
+Index: sid/modules/pam_mail/pam_mail.c
+===================================================================
+--- sid.orig/modules/pam_mail/pam_mail.c 2009-05-30 17:02:33.000000000 -0400
++++ sid/modules/pam_mail/pam_mail.c 2009-05-30 17:20:28.000000000 -0400
+@@ -303,8 +303,13 @@
+ {
+ int retval;
+
+- if (!(ctrl & PAM_MAIL_SILENT) ||
+- ((ctrl & PAM_QUIET_MAIL) && type == HAVE_NEW_MAIL))
++ if ((ctrl & PAM_MAIL_SILENT) ||
++ ((ctrl & PAM_QUIET_MAIL) && type != HAVE_NEW_MAIL))
++ {
++ D(("keeping quiet"));
++ retval = PAM_SUCCESS;
++ }
++ else
+ {
+ if (ctrl & PAM_STANDARD_MAIL)
+ switch (type)
+@@ -345,11 +350,6 @@
+ break;
+ }
+ }
+- else
+- {
+- D(("keeping quiet"));
+- retval = PAM_SUCCESS;
+- }
+
+ D(("returning %s", pam_strerror(pamh, retval)));
+ return retval;
diff --git a/debian/patches-applied/series b/debian/patches-applied/series
index 652ce5a9..1b3bddae 100644
--- a/debian/patches-applied/series
+++ b/debian/patches-applied/series
@@ -23,3 +23,4 @@ pam_unix-chkpwd-wait
autoconf.patch
dont_freeze_password_chain -p0
pam_1.0.4_mindays
+pam_mail-fix-quiet