Nuke the FIODTYPE compatibility bits. It's time.
This commit is contained in:
parent
c0d3a0d572
commit
bf3367d091
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51913
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user