summaryrefslogtreecommitdiffstats
path: root/sbin/dumpon
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-01-04 12:52:52 +0000
committerphk <phk@FreeBSD.org>2000-01-04 12:52:52 +0000
commit3428629295a631b7efb9f963a5747ded4524f288 (patch)
tree2d9c1e868f709d46a01adeacc559970ab9d672d9 /sbin/dumpon
parentbe15f1db174da6fa6fb1f33cb29fb65db9b9e5aa (diff)
downloadFreeBSD-src-3428629295a631b7efb9f963a5747ded4524f288.zip
FreeBSD-src-3428629295a631b7efb9f963a5747ded4524f288.tar.gz
The dumpon sysctl only accept cdevs thse days.
Submitted by: bde
Diffstat (limited to 'sbin/dumpon')
-rw-r--r--sbin/dumpon/dumpon.c5
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 {
OpenPOWER on IntegriCloud