* Don't assume that paths returned by the runtime root finder are
valid.
This commit is contained in:
parent
d19b6521fc
commit
92f7dfa5b7
|
@ -332,7 +332,7 @@ static void addAdditionalRoots(PathSet & roots)
|
||||||
for (Strings::iterator i = paths.begin(); i != paths.end(); ++i) {
|
for (Strings::iterator i = paths.begin(); i != paths.end(); ++i) {
|
||||||
if (isInStore(*i)) {
|
if (isInStore(*i)) {
|
||||||
Path path = toStorePath(*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);
|
debug(format("found additional root `%1%'") % path);
|
||||||
roots.insert(path);
|
roots.insert(path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue