diff options
author | green <green@FreeBSD.org> | 1999-10-03 18:49:51 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-10-03 18:49:51 +0000 |
commit | 0a7a70c712482a86348df77f1740b58a92c42ea4 (patch) | |
tree | 205e271642a02ee0762fc8d206420d67b39a63e5 /bin | |
parent | ca2541a602effb2c881cf3c71fabda8f63727f84 (diff) | |
download | FreeBSD-src-0a7a70c712482a86348df77f1740b58a92c42ea4.zip FreeBSD-src-0a7a70c712482a86348df77f1740b58a92c42ea4.tar.gz |
Nuke the FIODTYPE compatibility bits. It's time.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dd/dd.c | 4 |
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; |