mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
* Don't assume that paths returned by the runtime root finder are
valid.
This commit is contained in:
parent
d19b6521fc
commit
92f7dfa5b7
1 changed files with 1 additions and 1 deletions
|
@ -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