summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_prot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 1611cc3bb6bb..306b36ccd84f 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -929,9 +929,9 @@ setlogin(p, uap)
void
setsugid(p)
- struct proc *p;
+ struct proc *p;
{
p->p_flag |= P_SUGID;
- if (!(p->p_pfsflags & PF_ISUGID))
+ if (p->p_pfsflags & PF_ISUGID)
p->p_stops = 0;
}