]> Savannah Git Hosting - gnulib.git/commit
openat: Fix theoretically possible issue on GNU/Hurd.
authorBruno Haible <bruno@clisp.org>
Sat, 7 Mar 2020 17:35:25 +0000 (18:35 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 7 Mar 2020 17:35:25 +0000 (18:35 +0100)
commita99ca2e041127e0c0d6c14273097c86879a6ebe3
treee4709ce5429c33d58e3aef3a22feb2d044daf3d2
parentd279bc6d9f9323e19ad8c32b6d12ff96dfb0f5ba
openat: Fix theoretically possible issue on GNU/Hurd.

Reported by Dan Gohman <sunfish@mozilla.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.

* lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
ignore the bits that are also set in O_RDONLY.
ChangeLog
lib/openat.c