Accept both types of devices to work with older kernels too

Fix confusing message
This commit is contained in:
ache 1999-11-30 16:27:30 +00:00
parent 9298d6c8c5
commit fbd62338d1

View File

@ -84,8 +84,8 @@ main(int argc, char **argv)
err(EX_OSFILE, "%s", argv[0]);
}
if (!S_ISCHR(stab.st_mode)) {
errx(EX_USAGE, "%s: must specify a block device",
if (!S_ISCHR(stab.st_mode) && !S_ISBLK(stab.st_mode)) {
errx(EX_USAGE, "%s: must specify a device",
argv[0]);
}
} else {