[Bug 2937] Unable to disable $MAIL setting.

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Dec 7 15:40:43 AEDT 2018


--- Comment #3 from Darren Tucker <dtucker at dtucker.net> ---
Comment on attachment 3210
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3210
Don't set $MAIL is PAM is in use

No that skips it when PAM is compiled in.  To skip it when PAM is in
use you need to also test options.use_pam:

>+#ifndef USE_PAM
    if (!options.use_pam) {
> 	snprintf(buf, sizeof buf, "%.200s/%.50s", _PATH_MAILDIR, pw->pw_name);
> 	child_set_env(&env, &envsize, "MAIL", buf);

with that change ok dtucker.

You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list