]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: fix regression in open() flags used
authorPádraig Brady <P@draigBrady.com>
Mon, 13 Jan 2025 16:37:06 +0000 (16:37 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 13 Jan 2025 17:24:16 +0000 (17:24 +0000)
commit527d331af451f809f87fac846a8bd5a93ac4efb0
treec3a6cd0c05eae4fb5e740717eb05de6fa62d98e3
parenta83615427b5f7821d3182986a88c7b53e6ec2e5b
tail: fix regression in open() flags used

* 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.
src/tail.c