summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-03-29 22:59:44 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-03-29 22:59:44 +0000
commitf8e6ab29c2b39e37f73ce088a5602c2829bad168 (patch)
tree685eb241016eff7f383050abd18f7321131df9e6 /sys/kern
parent3801fcd9f1f8fee306b81fd6fb89961d3b20cff2 (diff)
Notes
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_prot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 1bae10b9f492..8ced323613be 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -984,9 +984,7 @@ u_cansee(struct ucred *u1, struct ucred *u2)
if ((error = prison_check(u1, u2)))
return (error);
if (!ps_showallprocs && u1->cr_uid != u2->cr_uid) {
- if (suser_xxx(u1, NULL, PRISON_ROOT) == 0)
- return (0);
- else
+ if (suser_xxx(u1, NULL, PRISON_ROOT) != 0)
return (ESRCH);
}
return (0);