diff options
author | pjd <pjd@FreeBSD.org> | 2004-02-05 09:50:57 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-02-05 09:50:57 +0000 |
commit | 579c222899f51af2975c5dc016a59546cf239117 (patch) | |
tree | 8c803b1ab40ec04a70d2e18d31d3b58804ecd0a1 /sys/dev/zs/zs.c | |
parent | 0cef6a966edde816792262872ad97463c7ce8a8b (diff) | |
download | FreeBSD-src-579c222899f51af2975c5dc016a59546cf239117.zip FreeBSD-src-579c222899f51af2975c5dc016a59546cf239117.tar.gz |
Fix wrong check.
Approved by: jake, scottl (mentor)
Diffstat (limited to 'sys/dev/zs/zs.c')
-rw-r--r-- | sys/dev/zs/zs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |