openat: Work around glibc bug with fchownat() and empty file names.
authorBruno Haible <bruno@clisp.org>
Sat, 13 Nov 2010 14:25:14 +0000 (15:25 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 13 Nov 2010 14:25:14 +0000 (15:25 +0100)
commita14bd223642bd4673e2561c477190875764583eb
treee0c9bf7ca1a3e2df0ee9aea96021c37942b6f731
parent7a9b9587b59dd2e904d6b94cf246a0b939dea327
openat: Work around glibc bug with fchownat() and empty file names.

* m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
(gl_FUNC_FCHOWNAT): Invoke it.
* lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
* doc/posix-functions/fchownat.texi: Document the glibc bug.
Reported by Gary V. Vaughan <gary@gnu.org>.
ChangeLog
doc/posix-functions/fchownat.texi
lib/fchownat.c
m4/openat.m4