From 8b40267ecc55c96accdd6d9ca2c88cfc1630533a Mon Sep 17 00:00:00 2001
From: Bill Hoffman <bill.hoffman@kitware.com>
Date: Thu, 18 Sep 2003 11:05:01 -0400
Subject: [PATCH] ENH: remove /tmp_mnt in collapse full path

---
 SystemTools.cxx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/SystemTools.cxx b/SystemTools.cxx
index bcf769cb..81b55b46 100644
--- a/SystemTools.cxx
+++ b/SystemTools.cxx
@@ -692,7 +692,6 @@ void SystemTools::ConvertToUnixSlashes(kwsys_std::string& path)
     }
   
   // if there is a /tmp_mnt in a path get rid of it!
-  // stupid sgi's 
   if(path.find("/tmp_mnt") == 0)
     {
     path = path.substr(8);
@@ -1302,6 +1301,11 @@ kwsys_std::string SystemTools::CollapseFullPath(const char* in_relative,
     {
     newDir = SystemTools::GetCurrentWorkingDirectory();
     }
+  // if there is a /tmp_mnt in a path get rid of it!
+  if(newDir.find("/tmp_mnt") == 0)
+    {
+    newDir = newDir.substr(8);
+    }
 #endif
   
   // Restore original working directory.
-- 
GitLab