diff options
Diffstat (limited to 'sbin/dumpon/dumpon.c')
-rw-r--r-- | sbin/dumpon/dumpon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c index 6017aa1..2e4f28b 100644 --- a/sbin/dumpon/dumpon.c +++ b/sbin/dumpon/dumpon.c @@ -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 { |