mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
Simplify isInDir
usage with isDirOrInDir
This commit is contained in:
parent
f497711aa8
commit
3286728e40
1 changed files with 1 additions and 1 deletions
|
@ -1060,7 +1060,7 @@ void LocalDerivationGoal::startBuilder()
|
|||
/* If only we had a trie to do this more efficiently :) luckily, these are generally going to be pretty small */
|
||||
for (auto & a : allowedPaths) {
|
||||
Path canonA = canonPath(a);
|
||||
if (canonI == canonA || isInDir(canonI, canonA)) {
|
||||
if (isDirOrInDir(canonI, canonA)) {
|
||||
found = true;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue