Fix the breakage that occurred when somebody didn't do a complete

checkin of the changes to kern_prot.c.
This commit is contained in:
Matt Jacob 2000-06-23 22:44:04 +00:00
parent 4b4289e4d0
commit 8c14a611a4

View File

@ -1031,8 +1031,8 @@ osf1_setuid(p, uap)
pc->pc_ucred = crcopy(pc->pc_ucred);
pc->pc_ucred->cr_uid = uid;
if (error == 0) {
(void)chgproccnt(pc->p_ruid, -1);
(void)chgproccnt(uid, 1);
(void)chgproccnt(pc->p_ruid, -1, 0);
(void)chgproccnt(uid, 1, 0);
pc->p_ruid = uid;
pc->p_svuid = uid;
}