Browse Source

BUG: IsSubDirectory should use ComparePath to do platform-independent path comparison.

Brad King 19 năm trước cách đây
mục cha
commit
dbd70091f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 1
Source/kwsys/SystemTools.cxx

@@ -3466,7 +3466,7 @@ bool SystemTools::IsSubDirectory(const char* cSubdir, const char* cDir)
   do
     {
     path = SystemTools::GetParentDirectory(path.c_str());
-    if ( dir == path )
+    if(SystemTools::ComparePath(dir.c_str(), path.c_str()))
       {
       return true;
       }