diff options
Diffstat (limited to 'sbin/fsck/setup.c')
-rw-r--r-- | sbin/fsck/setup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/fsck/setup.c b/sbin/fsck/setup.c index 7444d375..0df8e98 100644 --- a/sbin/fsck/setup.c +++ b/sbin/fsck/setup.c @@ -87,8 +87,9 @@ setup(dev) printf("Can't stat %s: %s\n", dev, strerror(errno)); return (0); } - if ((statb.st_mode & S_IFMT) != S_IFCHR) { - pfatal("%s is not a character device", dev); + if ((statb.st_mode & S_IFMT) != S_IFCHR && + (statb.st_mode & S_IFMT) != S_IFBLK) { + pfatal("%s is not a disk device", dev); if (reply("CONTINUE") == 0) return (0); } |