#286 pam_mail.c: MAIL env unset when PAM_SILENT set

bugfix
closed-fixed
nobody
modules (176)
5
2007-04-30
2007-04-23
Anonymous
No

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.

Discussion

  • Nobody/Anonymous

    pam_mail.c patch

     
  • Thorsten Kukuk

    Thorsten Kukuk - 2007-04-30

    Logged In: YES
    user_id=1142
    Originator: NO

    Thanks, I removed the check.

     
  • Thorsten Kukuk

    Thorsten Kukuk - 2007-04-30
    • status: open --> closed-fixed
     

Log in to post a comment.