mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Nuke the FIODTYPE compatibility bits. It's time.
This commit is contained in:
parent
c0d3a0d572
commit
bf3367d091
1 changed files with 1 additions and 3 deletions
|
|
@ -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 a new issue