From 073e7bd0b7eb854bce79ceeacec2f947c340a128 Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Tue, 25 Apr 2006 09:54:07 -0400
Subject: [PATCH] BUG: IsSubDirectory should use ComparePath to do
 platform-independent path comparison.

---
 SystemTools.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/SystemTools.cxx b/SystemTools.cxx
index b03ad1ff..274e3335 100644
--- a/SystemTools.cxx
+++ b/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;
       }
-- 
GitLab