* Don't assume that paths returned by the runtime root finder are

valid.
This commit is contained in:
Eelco Dolstra 2006-08-11 20:15:20 +00:00
parent d19b6521fc
commit 92f7dfa5b7

View file

@ -332,7 +332,7 @@ static void addAdditionalRoots(PathSet & roots)
for (Strings::iterator i = paths.begin(); i != paths.end(); ++i) {
if (isInStore(*i)) {
Path path = toStorePath(*i);
if (roots.find(path) == roots.end()) {
if (roots.find(path) == roots.end() && isValidPath(path)) {
debug(format("found additional root `%1%'") % path);
roots.insert(path);
}