diff options
author | phk <phk@FreeBSD.org> | 2004-09-22 18:18:26 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-09-22 18:18:26 +0000 |
commit | eb3be2c541c402d7d430f9b1b93bf9ba9a119934 (patch) | |
tree | c410e5cdfec17fa62fbdabd5dc07063a9a09d955 /sys/isofs | |
parent | 3bd075200eaa147ab43ca95e4d52cdc3d7eb37b1 (diff) | |
download | FreeBSD-src-eb3be2c541c402d7d430f9b1b93bf9ba9a119934.zip FreeBSD-src-eb3be2c541c402d7d430f9b1b93bf9ba9a119934.tar.gz |
Pointy hat please!
Refuse VCHR not VREG.
Diffstat (limited to 'sys/isofs')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c index f166f05..afc6a2e 100644 --- a/sys/isofs/cd9660/cd9660_vnops.c +++ b/sys/isofs/cd9660/cd9660_vnops.c @@ -131,7 +131,7 @@ cd9660_access(ap) struct iso_node *ip = VTOI(vp); mode_t mode = ap->a_mode; - if (vp->v_type == VREG || vp->v_type == VBLK) + if (vp->v_type == VCHR || vp->v_type == VBLK) return (EOPNOTSUPP); /* @@ -231,7 +231,7 @@ cd9660_ioctl(ap) struct vnode *vp = ap->a_vp; struct iso_node *ip = VTOI(vp); - if (vp->v_type == VREG || vp->v_type == VBLK) + if (vp->v_type == VCHR || vp->v_type == VBLK) return (EOPNOTSUPP); switch (ap->a_command) { @@ -267,7 +267,7 @@ cd9660_read(ap) int seqcount; long size, n, on; - if (vp->v_type == VREG || vp->v_type == VBLK) + if (vp->v_type == VCHR || vp->v_type == VBLK) return (EOPNOTSUPP); seqcount = ap->a_ioflag >> IO_SEQSHIFT; |