aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2004-02-05 09:50:57 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2004-02-05 09:50:57 +0000
commite493da7e6f0cae4fbd6ad89f2bed79ddf59a7c9d (patch)
tree8c803b1ab40ec04a70d2e18d31d3b58804ecd0a1 /sys
parentf258f151cdb2867f212600cde28d6d3105733128 (diff)
downloadsrc-e493da7e6f0cae4fbd6ad89f2bed79ddf59a7c9d.tar.gz
src-e493da7e6f0cae4fbd6ad89f2bed79ddf59a7c9d.zip
Fix wrong check.
Approved by: jake, scottl (mentor)
Notes
Notes: svn path=/head/; revision=125475
Diffstat (limited to 'sys')
-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 d8ac3d4501d8..aea2e16a0d56 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 7e58049341d0..a6e398f2c011 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) {