]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PR: bug 20152 V5_1_1a1
authorprascle <prascle>
Thu, 19 Feb 2009 16:12:11 +0000 (16:12 +0000)
committerprascle <prascle>
Thu, 19 Feb 2009 16:12:11 +0000 (16:12 +0000)
src/NamingService/SALOME_NamingService.cxx

index ab6eece0aa5780cfea2f62180988a9cbe604a345..33e94851b703501e0dbee396aa71714d85adc8c4 100644 (file)
@@ -518,7 +518,8 @@ SALOME_NamingService::ResolveComponent(const char* hostname,
   else
     {
       SCRUTE(name);
-      if (Change_Directory(name.c_str()))
+      string basename = name;
+      if (Change_Directory(basename.c_str()))
        {
          vector<string> contList = list_subdirs();
 
@@ -542,6 +543,8 @@ SALOME_NamingService::ResolveComponent(const char* hostname,
 
              if ( !CORBA::is_nil(obj) )
                return obj;
+              else
+                Change_Directory(basename.c_str());
            }
        }