--- a/src/utils/pathut.cpp
+++ b/src/utils/pathut.cpp
@@ -331,10 +331,10 @@
}
s = path_cat(string(buf), s);
}
- list<string>elems;
+ vector<string> elems;
stringToTokens(s, elems, "/");
- list<string> cleaned;
- for (list<string>::const_iterator it = elems.begin();
+ vector<string> cleaned;
+ for (vector<string>::const_iterator it = elems.begin();
it != elems.end(); it++){
if (*it == "..") {
if (!cleaned.empty())
@@ -346,7 +346,7 @@
}
string ret;
if (!cleaned.empty()) {
- for (list<string>::const_iterator it = cleaned.begin();
+ for (vector<string>::const_iterator it = cleaned.begin();
it != cleaned.end(); it++) {
ret += "/";
ret += *it;