]> Savannah Git Hosting - gnulib.git/commit
access: Work around trailing slash bug on Mac OS X 10.5.
authorBruno Haible <bruno@clisp.org>
Tue, 3 Oct 2023 13:59:57 +0000 (15:59 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 3 Oct 2023 14:16:31 +0000 (16:16 +0200)
commitacdf80a46a09656214cbbf518125bf94db087ae8
tree5622d4be8154e7092d8eb32a244fb8dbc2aec9b7
parent2f443e2d9d451e135e6a342041cb04df51b51291
access: Work around trailing slash bug on Mac OS X 10.5.

* m4/access.m4 (gl_FUNC_ACCESS): Test whether access honors a trailing
slash. Set REPLACE_ACCESS to 1 and define ACCESS_TRAILING_SLASH_BUG if
not.
* lib/access.c (access): Add an implementation for Unix-like platforms.
* tests/test-access.c (main): Test for result if the argument has a
trailing slash.
* modules/access-tests (Depends-on): Add 'symlink'.
* doc/posix-functions/access.texi: Mention the Mac OS X bug.
ChangeLog
doc/posix-functions/access.texi
lib/access.c
m4/access.m4
modules/access-tests
tests/test-access.c