Switch to side-by-side view
--- a/upmpd/upmpdutils.cxx +++ b/upmpd/upmpdutils.cxx @@ -210,8 +210,8 @@ vector<string> vpath; stringToTokens(path, vpath, "/", true); string npath; - for (auto& pelt : vpath) { - npath += string("/") + pelt; + for (auto it = vpath.begin(); it != vpath.end(); it++) { + npath += string("/") + *it; if (access(npath.c_str(), 0) < 0) { if (mkdir(npath.c_str(), mode)) { return false;