diff options
author | steve <steve@FreeBSD.org> | 1998-12-13 23:30:15 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1998-12-13 23:30:15 +0000 |
commit | c5ff6e3473b6f5e9b01fc89015a9ecf7ac4dd4db (patch) | |
tree | 212045af5cb65d14979cd2b03357bf2e13d03d8e | |
parent | 067b9d6ac95655b4b294360c71f1fd00cad21bf3 (diff) | |
download | FreeBSD-src-c5ff6e3473b6f5e9b01fc89015a9ecf7ac4dd4db.zip FreeBSD-src-c5ff6e3473b6f5e9b01fc89015a9ecf7ac4dd4db.tar.gz |
wcd_read_toc returns zero on success and EIO on failure, so change the
test in open to return EIO if non-zero.
PR: 8316
Submitted by: Masatoshi TAMURA <tamrin@shinzan.kuee.kyoto-u.ac.jp>
-rw-r--r-- | sys/i386/isa/wcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/wcd.c b/sys/i386/isa/wcd.c index 13b3ce0..bfd96a7 100644 --- a/sys/i386/isa/wcd.c +++ b/sys/i386/isa/wcd.c @@ -13,7 +13,7 @@ * all derivative works or modified versions. * * From: Version 1.9, Mon Oct 9 20:27:42 MSK 1995 - * $Id: wcd.c,v 1.59 1998/09/15 08:15:29 gibbs Exp $ + * $Id: wcd.c,v 1.60 1998/10/30 10:57:09 luigi Exp $ */ #include "wdc.h" @@ -530,7 +530,7 @@ wcdopen (dev_t dev, int flags, int fmt, struct proc *p) /* On the first open, read the table of contents. */ if (! (t->flags & F_BOPEN) && ! t->refcnt) { /* Read table of contents. */ - if (wcd_read_toc (t) < 0) + if (wcd_read_toc (t) != 0) return (EIO); /* Lock the media. */ |