[Cmake-commits] [cmake-commits] king committed SystemTools.cxx 1.233 1.234
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Feb 9 16:45:17 EST 2009
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv31581/Source/kwsys
Modified Files:
SystemTools.cxx
Log Message:
BUG: Work around broken GetLongPathName case
On Windows the GetLongPathName API function does not work on some
filesystems even if the file exists. In this case we should just use
the original long path name and not the GetShortPathName result.
See issue #8480.
Index: SystemTools.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemTools.cxx,v
retrieving revision 1.233
retrieving revision 1.234
diff -C 2 -d -r1.233 -r1.234
*** SystemTools.cxx 9 Feb 2009 14:23:13 -0000 1.233
--- SystemTools.cxx 9 Feb 2009 21:45:15 -0000 1.234
***************
*** 3059,3062 ****
--- 3059,3067 ----
return p;
}
+ // Use original path if conversion back to a long path failed.
+ if(longPath == shortPath)
+ {
+ longPath = p;
+ }
// make sure drive letter is always upper case
if(longPath.size() > 1 && longPath[1] == ':')
More information about the Cmake-commits
mailing list