Dont check that the values in skippedPaths exist like we do with topdirs, they are wildcard exprs!
This commit is contained in:
parent
c289085003
commit
952d925c47
@ -325,25 +325,8 @@ static bool checktopdirs(RclConfig *config, vector<string>& nonexist)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check skippedPaths too, but only the user part (shallow==true), not
|
// We'd like to check skippedPaths too, but these are wildcard exprs, so reasonably can't
|
||||||
// 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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user