aboutsummaryrefslogtreecommitdiff
path: root/sbin/dumpon
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-11-28 16:25:17 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-11-28 16:25:17 +0000
commitee072c08d05f833fc06d18e6804f2b770978909e (patch)
tree8fdb0c32aa14a1f91e6e00ed43fe695bcf0d7e11 /sbin/dumpon
parent7b97bc478bcd000b17b86dd5c874e945cb977dac (diff)
downloadsrc-ee072c08d05f833fc06d18e6804f2b770978909e.tar.gz
src-ee072c08d05f833fc06d18e6804f2b770978909e.zip
Convert dumpon to work on character devices instead of block devices.
NB: You may need to change your /etc/rc.conf!
Notes
Notes: svn path=/head/; revision=53838
Diffstat (limited to 'sbin/dumpon')
-rw-r--r--sbin/dumpon/dumpon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c
index 76cdc60e768b..6017aa1ec3a8 100644
--- a/sbin/dumpon/dumpon.c
+++ b/sbin/dumpon/dumpon.c
@@ -84,7 +84,7 @@ main(int argc, char **argv)
err(EX_OSFILE, "%s", argv[0]);
}
- if (!S_ISBLK(stab.st_mode)) {
+ if (!S_ISCHR(stab.st_mode)) {
errx(EX_USAGE, "%s: must specify a block device",
argv[0]);
}