This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:
>#ifdef HAVE_DOS_BASED_FILE_SYSTEM
>/* 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
>#endif

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.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]