fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 8 Nov 2012 09:23:20 +0000 (01:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 8 Nov 2012 09:24:09 +0000 (01:24 -0800)
commita0169ab699a208ae0ef2e54f68438226f3d714a1
tree8e82770165f45c1806b661067da21df284876ad0
parentda4867d2a6a43f55b0339e06aba975b50b60a570
fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY

O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
fails with errno == EBADF when fd is opened with O_PATH.
Reported by Jim Meyering in
<http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
* doc/posix-headers/fcntl.texi (fcntl.h): Document this.
* lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
ChangeLog
doc/posix-headers/fcntl.texi
lib/fcntl.in.h