From bf3367d09131ea9a66d7e8301407e77e59078829 Mon Sep 17 00:00:00 2001 From: Brian Feldman Date: Sun, 3 Oct 1999 18:49:51 +0000 Subject: [PATCH] Nuke the FIODTYPE compatibility bits. It's time. --- bin/dd/dd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/dd/dd.c b/bin/dd/dd.c index 49fd7be22f0..97613f557b6 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;