openat: fix openat bugs on Solaris 9
authorEric Blake <ebb9@byu.net>
Sat, 19 Sep 2009 17:16:58 +0000 (11:16 -0600)
committerEric Blake <ebb9@byu.net>
Sat, 19 Sep 2009 19:53:27 +0000 (13:53 -0600)
commit4c45e93c58de6532275c22a9153ecdfe516928ff
tree846c906d66e5fb0df6c775a08a40b3c878baeb48
parent82bf7d1b42dc970e704f9347862594445f4a22dd
openat: fix openat bugs on Solaris 9

openat(fd,"file/",O_RDONLY) mistakenly succeeded.

* lib/openat.c (rpl_openat): Work around Solaris 9 bug.
* m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
* modules/openat (Depends-on): Add open.
* m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
* modules/fcntl-h (Makefile.am): Substitute it.
* lib/fcntl.in.h (openat): Declare replacement.
* doc/posix-functions/openat.texi (openat): Document this.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-functions/openat.texi
lib/fcntl.in.h
lib/openat.c
m4/fcntl_h.m4
m4/openat.m4
modules/fcntl-h
modules/openat