openat: detect Solaris fchownat bug
authorEric Blake <ebb9@byu.net>
Sat, 14 Nov 2009 15:17:44 +0000 (08:17 -0700)
committerEric Blake <ebb9@byu.net>
Sat, 14 Nov 2009 18:46:51 +0000 (11:46 -0700)
commitc13ca15f1a9efad6c85e2debf5bcc54db425d017
treec8a2f27fce5ecc8d725def4b62524be7845f688f
parent6bd102382341d268d2e99349abd4c21546a5993e
openat: detect Solaris fchownat bug

Solaris 9 fchownat(dir,"name/",uid,gid,flag) has same bugs as
chown and lchown.

* lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
penalizing glibc chownat when only lchownat is broken.
* m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
trailing slash bugs.
* doc/posix-functions/fchownat.texi (fchownat): Document the bug.
* modules/openat-tests (Files): Include more files.
(Depends-on): Add mgetgroups, sleep, stat-time.
(configure.ac): Add additional checks.
(Makefile.am): Build new test.
* tests/test-fchownat.c: New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-functions/fchownat.texi
lib/fchownat.c
m4/openat.m4
modules/openat-tests
tests/test-fchownat.c [new file with mode: 0644]