Re: [Chicken-hackers] [PATCH] Fix stat() on non-directories so file-access tests pass on Haiku

2018-08-12 Thread felix . winkelmann
> Hi all, > > I was testing rc1 on Haiku and noticed that the file-access-test fails. > It turns out that stat() on Haiku will return 0 when the path contains > a trailing slash, even if it's a file (POSIX says it should return -1 > and set errno to ENOTDIR). > > Attached is a patch that copies

[Chicken-hackers] [PATCH] Fix stat() on non-directories so file-access tests pass on Haiku

2018-08-12 Thread Peter Bex
Hi all, I was testing rc1 on Haiku and noticed that the file-access-test fails. It turns out that stat() on Haiku will return 0 when the path contains a trailing slash, even if it's a file (POSIX says it should return -1 and set errno to ENOTDIR). Attached is a patch that copies part of the