Make Sendmail properly set login class and cpumask.

This commit is contained in:
Edward Tomasz Napierala 2011-06-30 20:55:16 +00:00
parent c412551667
commit 906a940ee5

View File

@ -2416,6 +2416,12 @@ deliver(e, firstto)
else
pwd = sm_getpwnam(contextaddr->q_user);
sucflags = LOGIN_SETRESOURCES|LOGIN_SETPRIORITY;
#ifdef LOGIN_SETCPUMASK
sucflags |= LOGIN_SETCPUMASK;
#endif /* LOGIN_SETCPUMASK */
#ifdef LOGIN_SETLOGINCLASS
sucflags |= LOGIN_SETLOGINCLASS;
#endif /* LOGIN_SETLOGINCLASS */
#ifdef LOGIN_SETMAC
sucflags |= LOGIN_SETMAC;
#endif /* LOGIN_SETMAC */