On 2023-10-03 I did:
> * tests/test-access.c (main): Test for result if the argument has a
> trailing slash.
The new test cases fail on native Windows:
../../gltests/test-access.h:54: assertion 'errno == ENOTDIR' failed
FAIL test-access.exe (exit status: 3)
This patch fixes it.
I wrote:
> On Mac OS X 10.5, I see this test failure:
>
> ../../gltests/test-faccessat.c:63: assertion 'faccessat (AT_FDCWD, BASE
> "link2/", F_OK, 0) != 0' failed
> FAIL test-faccessat (exit status: 134)
It is now fixed by the preceding changes to access() and euidaccess().
But one can strength
I did:
> 2023-10-03 Bruno Haible
>
> access: Work around trailing slash bug on Mac OS X 10.5.
This change was incomplete: When the 'stat' module is in use, the
unit test fails. Easy to fix:
2023-10-03 Bruno Haible
access: Make last change work also when
at
(AT_FDCWD, BASE \"link2/\", F_OK, 0) != 0' failed\n\0", 0x68) =
104 0
...
So, the first thing we have to do here is to get access() work right.
2023-10-03 Bruno Haible
access: Work around trailing slash bug on Mac OS X 10.5.
* m4/access.m