From fbd62338d12717e0456f77a190e17327a78c330a Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 30 Nov 1999 16:27:30 +0000 Subject: Accept both types of devices to work with older kernels too Fix confusing message --- sbin/dumpon/dumpon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/dumpon') 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 { -- cgit v1.1