[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-hackers] [PATCH] Fix stat() on non-directories so file-access t
From: |
Peter Bex |
Subject: |
[Chicken-hackers] [PATCH] Fix stat() on non-directories so file-access tests pass on Haiku |
Date: |
Sun, 12 Aug 2018 19:59:50 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
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 workaround we have for MingW
to Haiku.
I've mentioned this in the Haiku IRC channel and they agree it's a bug
so maybe a few releases from now we can take out this workaround again.
They take even longer between "releases" than we do, though, so I think
it's worthwhile to apply the patch.
Cheers,
Peter
0001-Fix-stat-with-trailing-slashes-behaviour-on-Haiku.patch
Description: Text Data
signature.asc
Description: PGP signature
- [Chicken-hackers] [PATCH] Fix stat() on non-directories so file-access tests pass on Haiku,
Peter Bex <=