From: sos AT prospect DOT com DOT ru (Sergey Okhapkin) Subject: Path handling bug 27 Aug 1998 09:44:52 -0700 Message-ID: <01BDD1F9.ECC669D0.cygnus.cygwin32.developers@sos> To: "'cygwin32-developers AT cygnus DOT com'" Hi! path.cc (path_conv::path_conv): remove trailing backslach from full win32 name, otherwice the last component of the path doesn't checked for symlink (GetFileAttributes("C:\dir\file\") always fails). --- path.cc.orig Thu Aug 27 19:23:25 1998 +++ path.cc Thu Aug 27 20:27:43 1998 @@ -247,6 +247,9 @@ path_conv::path_conv (const char *src, i break; } + if (full_path[strlen (full_path) - 1] == '\\') + full_path[strlen (full_path) - 1] = 0; + DWORD fileattr; if ((fileattr = GetFileAttributes (full_path)) != (DWORD)-1 && !SYMLINKATTR (fileattr)) -- Sergey Okhapkin, http://www.lexa.ru/sos Moscow, Russia