This is the mail archive of the
mailing list for the GCC project.
Re: RFA: Fix problem with trailing slashes in include paths on mingw
On Tue, May 17, 2005 at 08:48:00AM -0700, Zack Weinberg wrote:
>/* Canonicalize all path separators to forward slashes. */
>// backward-to-forward slash converter here
>/* When running under MS Windows 2000 or XP, Cygwin's stat() fails
> when the pathname has trailing slashes (either variety), except
> for drive root directories (X:/). Removing those slashes is
> harmless in other contexts, so we do it unconditionally. */
>// trailing-slash stripper here
How did Cygwin enter into this? The patch says "mingw". Cygwin's stat
doesn't care if there are trailing slashes. If it did that would be
a Cygwin bug.