summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.c
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-10-03 18:49:51 +0000
committergreen <green@FreeBSD.org>1999-10-03 18:49:51 +0000
commit0a7a70c712482a86348df77f1740b58a92c42ea4 (patch)
tree205e271642a02ee0762fc8d206420d67b39a63e5 /bin/dd/dd.c
parentca2541a602effb2c881cf3c71fabda8f63727f84 (diff)
downloadFreeBSD-src-0a7a70c712482a86348df77f1740b58a92c42ea4.zip
FreeBSD-src-0a7a70c712482a86348df77f1740b58a92c42ea4.tar.gz
Nuke the FIODTYPE compatibility bits. It's time.
Diffstat (limited to 'bin/dd/dd.c')
-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 49fd7be..97613f5 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;
OpenPOWER on IntegriCloud