aboutsummaryrefslogtreecommitdiff
path: root/bin/dd
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>1999-10-03 18:49:51 +0000
committerBrian Feldman <green@FreeBSD.org>1999-10-03 18:49:51 +0000
commitbf3367d09131ea9a66d7e8301407e77e59078829 (patch)
tree64dcffa7342ce105e1bdc288ca6e94190d485839 /bin/dd
parentc0d3a0d572ddc53c438f6e88d05117b7b9537141 (diff)
downloadsrc-bf3367d09131ea9a66d7e8301407e77e59078829.tar.gz
src-bf3367d09131ea9a66d7e8301407e77e59078829.zip
Notes
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/dd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c
index 49fd7be22f0b..97613f557b60 100644
--- a/bin/dd/dd.c
+++ b/bin/dd/dd.c
@@ -214,9 +214,7 @@ getfdtype(io)
err(1, "%s", io->name);
if (S_ISCHR(sb.st_mode) || S_ISBLK(sb.st_mode)) {
if (ioctl(io->fd, FIODTYPE, &type) == -1) {
- warn("%s", io->name);
- if (S_ISCHR(sb.st_mode))
- io->flags |= ISCHR;
+ err(1, "%s", io->name);
} else {
if (type & D_TAPE)
io->flags |= ISTAPE;