diff options
-rw-r--r-- | sbin/dumpon/dumpon.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c index 2e4f28b..5945073 100644 --- a/sbin/dumpon/dumpon.c +++ b/sbin/dumpon/dumpon.c @@ -84,8 +84,9 @@ main(int argc, char **argv) err(EX_OSFILE, "%s", argv[0]); } - if (!S_ISCHR(stab.st_mode) && !S_ISBLK(stab.st_mode)) { - errx(EX_USAGE, "%s: must specify a device", + if (!S_ISCHR(stab.st_mode)) { + errx(EX_USAGE, + "%s: must specify a character disk device", argv[0]); } } else { |