Matthew Dempsky <[email protected]> wrote:
> Now that all of the new AT_* flags are supported, it's okay to expose
> openat(2), etc. in libc.
... revealing that the gnulib configure tests think that our
fchownat() is broken.
The test does
ln -s conftest.no-such conftest.dangle
and then runs this program:
--------------->
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
int
main ()
{
return (fchownat (AT_FDCWD, "conftest.dangle", -1, getgid (),
AT_SYMLINK_NOFOLLOW) != 0
&& errno == ENOENT);
}
<---------------
That indeed looks wrong to me.
--
Christian "naddy" Weisgerber [email protected]