From 3286728e4014bb3c6d30895980776d422010fc33 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 17 Mar 2025 17:49:23 -0400 Subject: [PATCH] Simplify `isInDir` usage with `isDirOrInDir` --- src/libstore/unix/build/local-derivation-goal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/unix/build/local-derivation-goal.cc b/src/libstore/unix/build/local-derivation-goal.cc index fac83b0c1..7ea5b8821 100644 --- a/src/libstore/unix/build/local-derivation-goal.cc +++ b/src/libstore/unix/build/local-derivation-goal.cc @@ -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; }