diff options
author | ache <ache@FreeBSD.org> | 1999-11-30 16:27:30 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-11-30 16:27:30 +0000 |
commit | fbd62338d12717e0456f77a190e17327a78c330a (patch) | |
tree | 36786f0b4e992fa7308f3144e23a8ea8581825fe /sbin/dumpon | |
parent | 9298d6c8c5d97e7f35ba25b4eb81fb2231002e86 (diff) | |
download | FreeBSD-src-fbd62338d12717e0456f77a190e17327a78c330a.zip FreeBSD-src-fbd62338d12717e0456f77a190e17327a78c330a.tar.gz |
Accept both types of devices to work with older kernels too
Fix confusing message
Diffstat (limited to 'sbin/dumpon')
-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 { |