Package: libpam-modules
Version: 0.79-4
Severity: important
Tags: patch

when the pam_mail module is used with the PAM_SILENT flag --due to a
user login where ~/.hushlogin exists in my case-- pam_mail.c:424 bails
out before the MAIL enviroment variable is set in the _do_mail function.

The check of PAM_SILENT in _do_mail can probably just be removed as
_pam_parse already checks for PAM_SILENT and adds PAM_MAIL_SILENT to the
ctrl set. The report_mail function properly checks for PAM_MAIL_SILENT
before it generates a response.

See also: 
http://sourceforge.net/tracker/index.php?func=detail&atid=106663&aid=1706247&group_id=6663


Index: Linux-PAM/modules/pam_mail/pam_mail.c
===================================================================
--- Linux-PAM/modules/pam_mail/pam_mail.c       (revision 397)
+++ Linux-PAM/modules/pam_mail/pam_mail.c       (working copy)
@@ -419,11 +419,6 @@
 
     ctrl = _pam_parse(flags, argc, argv, &path_mail, &hashcount);
 
-    /* Do we have anything to do? */
-
-    if (flags & PAM_SILENT)
-       return PAM_SUCCESS;
-
     /* which folder? */
 
     retval = get_folder(pamh, ctrl, &path_mail, &folder, hashcount);

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.20.1
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages libpam-modules depends on:
ii  libc6                         2.5-2      GNU C Library: Shared libraries
ii  libcap1                       1:1.10-14  support for getting/setting POSIX.
ii  libdb4.3                      4.3.29-8   Berkeley v4.3 Database Libraries [
ii  libpam0g                      0.79-4     Pluggable Authentication Modules l
ii  libselinux1                   2.0.8-1    SELinux shared libraries

libpam-modules recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to