1
0
Fork 0
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:
John Ericson 2025-03-17 17:49:23 -04:00
parent f497711aa8
commit 3286728e40

View file

@ -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 */ /* If only we had a trie to do this more efficiently :) luckily, these are generally going to be pretty small */
for (auto & a : allowedPaths) { for (auto & a : allowedPaths) {
Path canonA = canonPath(a); Path canonA = canonPath(a);
if (canonI == canonA || isInDir(canonI, canonA)) { if (isDirOrInDir(canonI, canonA)) {
found = true; found = true;
break; break;
} }