Mail Archives: cygwin-developers/1998/08/27/09:44:52
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
- Raw text -