Unbreak setregid(2).
Spotted by: Alexander Leidinger <Alexander@Leidinger.net>
This commit is contained in:
parent
751eb2452f
commit
4589be70fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77812
@ -788,6 +788,8 @@ setregid(p, uap)
|
||||
change_svgid(newcred, newcred->cr_groups[0]);
|
||||
setsugid(p);
|
||||
}
|
||||
p->p_ucred = newcred;
|
||||
crfree(oldcred);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user