summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2004-02-05 09:50:57 +0000
committerpjd <pjd@FreeBSD.org>2004-02-05 09:50:57 +0000
commit579c222899f51af2975c5dc016a59546cf239117 (patch)
tree8c803b1ab40ec04a70d2e18d31d3b58804ecd0a1 /sys/dev
parent0cef6a966edde816792262872ad97463c7ce8a8b (diff)
downloadFreeBSD-src-579c222899f51af2975c5dc016a59546cf239117.zip
FreeBSD-src-579c222899f51af2975c5dc016a59546cf239117.tar.gz
Fix wrong check.
Approved by: jake, scottl (mentor)
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/sab/sab.c2
-rw-r--r--sys/dev/zs/zs.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sab/sab.c b/sys/dev/sab/sab.c
index d8ac3d4..aea2e16 100644
--- a/sys/dev/sab/sab.c
+++ b/sys/dev/sab/sab.c
@@ -646,7 +646,7 @@ sabttyopen(dev_t dev, int flags, int mode, struct thread *td)
if ((tp->t_state & TS_ISOPEN) != 0 &&
(tp->t_state & TS_XCLUDE) != 0 &&
- !suser(td))
+ suser(td) != 0)
return (EBUSY);
if ((tp->t_state & TS_ISOPEN) == 0) {
diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c
index 7e58049..a6e398f 100644
--- a/sys/dev/zs/zs.c
+++ b/sys/dev/zs/zs.c
@@ -465,7 +465,7 @@ zsttyopen(dev_t dev, int flags, int mode, struct thread *td)
if ((tp->t_state & TS_ISOPEN) != 0 &&
(tp->t_state & TS_XCLUDE) != 0 &&
- !suser(td))
+ suser(td) != 0)
return (EBUSY);
if ((tp->t_state & TS_ISOPEN) == 0) {
OpenPOWER on IntegriCloud