Dont check that the values in skippedPaths exist like we do with topdirs, they are wildcard exprs!

This commit is contained in:
Jean-Francois Dockes 2016-01-29 20:09:35 +01:00
parent c289085003
commit 952d925c47

View File

@ -325,25 +325,8 @@ static bool checktopdirs(RclConfig *config, vector<string>& nonexist)
}
}
// Check skippedPaths too, but only the user part (shallow==true), not
// the default values (e.g. /media, which might not exist).
if (config->getConfParam("skippedPaths", &tdl, true)) {
for (vector<string>::iterator it = tdl.begin(); it != tdl.end(); it++) {
*it = path_tildexpand(*it);
if (!path_exists(*it)) {
nonexist.push_back(*it);
}
}
}
// We'd like to check skippedPaths too, but these are wildcard exprs, so reasonably can't
if (config->getConfParam("daemSkippedPaths", &tdl, true)) {
for (vector<string>::iterator it = tdl.begin(); it != tdl.end(); it++) {
*it = path_tildexpand(*it);
if (!path_exists(*it)) {
nonexist.push_back(*it);
}
}
}
return true;
}