chicken-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-hackers] [PATCH] Add a more thorough workaround for stat() issu


From: Evan Hanson
Subject: [Chicken-hackers] [PATCH] Add a more thorough workaround for stat() issues on MinGW
Date: Wed, 11 Oct 2017 13:41:48 +1300

Hi hackers,

After some more investigation into the behaviour of paths with slashes
on Windows, I've found that MinGW's version of stat(2) is even more
broken than we thought.

As previously discussed, it will fail when given a path with "too many"
slashes (where "too many" is 2 on MSYS and 3 on the other platforms),
but it will also *succeed* in some situations where it should fail, such
as when you give it a path to a regular file with slashes at the end!

I think the cleanest way to address these problems is to simply provide
a wrapper for stat(2) on MinGW that makes it behave more correctly, as
in the attached patch. Please see the commit message for details and let
me know if you have any questions; I tried to be very explicit about the
approach in the description and comments.

Cheers,

Evan

Attachment: 0001-Add-a-more-thorough-workaround-for-stat-issues-on-Mi.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]