From 13c5b17e615240728e852daf9395f37921907420 Mon Sep 17 00:00:00 2001 From: kervala Date: Tue, 11 Sep 2012 23:15:56 +0200 Subject: [PATCH] Changed: Reverted another previous fix (sorry again) --- .../general_utilities_service/gus_utils.cpp | 68 ------------------- .../src/general_utilities_service/gus_utils.h | 21 ------ 2 files changed, 89 deletions(-) diff --git a/code/ryzom/server/src/general_utilities_service/gus_utils.cpp b/code/ryzom/server/src/general_utilities_service/gus_utils.cpp index 94b4fac5b..a5f98115a 100644 --- a/code/ryzom/server/src/general_utilities_service/gus_utils.cpp +++ b/code/ryzom/server/src/general_utilities_service/gus_utils.cpp @@ -45,74 +45,6 @@ using namespace NLNET; namespace GUS { - //----------------------------------------------------------------------------- - // cleanPath - convert a path to standardised format - //----------------------------------------------------------------------------- - - CSString cleanPath(const CSString& path,bool addTrailingSlash) - { - CSString result; - - // split the path up into its component elements - CVectorSString pathComponents; - path.unquoteIfQuoted().splitByOneOfSeparators("/\\",pathComponents,false,false,true,false,true); - - // iterate over path components collapsing '.' and '..' entries - for (uint32 i=0;i a:/bcd/efg/ (no change) - // - a:\bcd\efg => a:/bcd/efg/ - // - \bcd\\efg => /bcd/efg/ - // - \\bcd\efg => //bcd/efg/ - // - \bcd\.\efg => /bcd/efg/ - // - \bcd\..\efg => /efg/ - // - bcd\..\efg => efg/ - // - bcd\..\..\efg => ../efg/ - // - \bcd\..\..\efg => /efg/ (NOTE: the redundant '..' entry is lost due to leading '\') - // - NLMISC::CSString cleanPath(const NLMISC::CSString& path,bool addTrailingSlash); - - // execute a command on a remote service void executeRemoteCommand(NLNET::TServiceId sid,const NLMISC::CSString& cmdLine); void executeRemoteCommand(const char* serviceName,const NLMISC::CSString& cmdLine);