* src/tail.c (tail_file): Fix precedence issue introduced
in commit
v9.5-231-g177fcec66 so that we pass correct flags to open().
Effectively this meant we would have dropped the O_BINARY flag
on windows, since O_RDONLY is generally 0.
Issue spotted by coverity.
xset_binary_mode (STDIN_FILENO, O_BINARY);
}
else
- fd = open (f->name, O_RDONLY | O_BINARY
- | nonblocking ? O_NONBLOCK : 0);
+ fd = open (f->name, O_RDONLY | O_BINARY | (nonblocking ? O_NONBLOCK : 0));
f->tailable = !(reopen_inaccessible_files && fd == -1);