diff options
author | phk <phk@FreeBSD.org> | 1999-11-28 16:25:17 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-11-28 16:25:17 +0000 |
commit | bd4a9519d9129db340eceb6bf445a32cd1c7a2b4 (patch) | |
tree | 6d222e15178d23a182a8bb65a6373b4584b55cfb /sbin/dumpon | |
parent | d5bd70def6d5dc858c2bcce3d419fbdd12d2cd95 (diff) | |
download | FreeBSD-src-bd4a9519d9129db340eceb6bf445a32cd1c7a2b4.zip FreeBSD-src-bd4a9519d9129db340eceb6bf445a32cd1c7a2b4.tar.gz |
Convert dumpon to work on character devices instead of block devices.
NB: You may need to change your /etc/rc.conf!
Diffstat (limited to 'sbin/dumpon')
-rw-r--r-- | sbin/dumpon/dumpon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dumpon/dumpon.c b/sbin/dumpon/dumpon.c index 76cdc60..6017aa1 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]); } |