Accept both types of devices to work with older kernels too
Fix confusing message
This commit is contained in:
parent
9298d6c8c5
commit
fbd62338d1
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user