summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/fs/cd9660/cd9660_vnops.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
index e9d6680..4d67251 100644
--- a/sys/fs/cd9660/cd9660_vnops.c
+++ b/sys/fs/cd9660/cd9660_vnops.c
@@ -168,10 +168,14 @@ cd9660_open(ap)
int a_fdidx;
} */ *ap;
{
- struct iso_node *ip = VTOI(ap->a_vp);
+ struct vnode *vp = ap->a_vp;
+ struct iso_node *ip = VTOI(vp);
- vnode_create_vobject(ap->a_vp, ip->i_size, ap->a_td);
- return 0;
+ if (vp->v_type == VCHR || vp->v_type == VBLK)
+ return (EOPNOTSUPP);
+
+ vnode_create_vobject(vp, ip->i_size, ap->a_td);
+ return (0);
}
OpenPOWER on IntegriCloud