diff options
Diffstat (limited to 'apt-pkg/contrib/configuration.cc')
-rw-r--r-- | apt-pkg/contrib/configuration.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc index 3cb7fde06..9007bf9ec 100644 --- a/apt-pkg/contrib/configuration.cc +++ b/apt-pkg/contrib/configuration.cc @@ -225,15 +225,7 @@ string Configuration::FindFile(const char *Name,const char *Default) const } result.append(val); } - - // do some normalisation by removing // and /./ from the path - size_t found = string::npos; - while ((found = result.find("/./")) != string::npos) - result.replace(found, 3, "/"); - while ((found = result.find("//")) != string::npos) - result.replace(found, 2, "/"); - - return result; + return flNormalize(result); } /*}}}*/ // Configuration::FindDir - Find a directory name /*{{{*/ |