[2865] in Release_Engineering
resource limits on the RS/6000
daemon@ATHENA.MIT.EDU (lwvanels@Athena.MIT.EDU)
Tue Jun 9 14:06:54 1992
From: lwvanels@Athena.MIT.EDU
Date: Tue, 9 Jun 92 14:06:40 -0400
To: rel-eng@Athena.MIT.EDU
Reply-To: lwvanels@MIT.EDU
Currently, a user logging in via xlogin incorrectly inherits low resource
limits from init; this patch is necessary to correctly set them from the
values in /etc/security/limits.
*** 1.29 1992/06/08 17:41:05
--- verify.c 1992/06/09 18:04:17
***************
*** 447,452 ****
--- 447,453 ----
newargv[1] = errbuf;
newargv[2] = script;
newargv[3] = NULL;
+ setpcred(pwd->pw_name,NULL);
setpenv(pwd->pw_name,PENV_KLEEN|PENV_INIT|PENV_ARGV,
environment,(char *)newargv);
#else