o A few more minor whitespace and other style fixes.
Submitted by: bde
This commit is contained in:
parent
9147519a91
commit
5a92ee3c00
@ -503,6 +503,7 @@ setuid(td, uap)
|
||||
mtx_lock(&Giant);
|
||||
error = 0;
|
||||
oldcred = p->p_ucred;
|
||||
|
||||
/*
|
||||
* See if we have "permission" by POSIX 1003.1 rules.
|
||||
*
|
||||
@ -644,6 +645,7 @@ setgid(td, uap)
|
||||
mtx_lock(&Giant);
|
||||
error = 0;
|
||||
oldcred = p->p_ucred;
|
||||
|
||||
/*
|
||||
* See if we have "permission" by POSIX 1003.1 rules.
|
||||
*
|
||||
@ -1016,9 +1018,8 @@ setresgid(td, uap)
|
||||
(sgid != (gid_t)-1 && sgid != oldcred->cr_rgid &&
|
||||
sgid != oldcred->cr_svgid &&
|
||||
sgid != oldcred->cr_groups[0])) &&
|
||||
(error = suser_xxx(oldcred, NULL, PRISON_ROOT)) != 0) {
|
||||
(error = suser_xxx(oldcred, NULL, PRISON_ROOT)) != 0)
|
||||
goto done2;
|
||||
}
|
||||
newcred = crdup(oldcred);
|
||||
if (egid != (gid_t)-1 && oldcred->cr_groups[0] != egid) {
|
||||
change_egid(newcred, egid);
|
||||
@ -1223,7 +1224,7 @@ int
|
||||
suser_td(td)
|
||||
struct thread *td;
|
||||
{
|
||||
return suser_xxx(0, td->td_proc, 0);
|
||||
return (suser_xxx(0, td->td_proc, 0));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user