Do not attempt to open NODEV

This commit is contained in:
phk 2004-02-24 09:59:35 +00:00
parent a0ff4ed2fe
commit 4666e8d5fb

View File

@ -148,6 +148,9 @@ spec_open(ap)
if (vp->v_mount && (vp->v_mount->mnt_flag & MNT_NODEV))
return (ENXIO);
if (dev == NODEV)
return (ENXIO);
dsw = devsw(dev);
if (dsw == NULL || dsw->d_open == NULL)
return (ENXIO);