aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2023-05-19 23:30:35 +0200
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2023-05-19 23:30:35 +0200
commitb14fea6fffaafa30faf67d89b6b6a01c14b3ddf3 (patch)
tree01c299667f1d21c4f0344f1577ebe194bce72e09 /src
parent36b7e30c1184035e72a7f24dc4656099ac6e208e (diff)
Shortcircuit for empty caFile
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build/local-derivation-goal.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index b50ff1f86..05d6685da 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -1777,7 +1777,8 @@ void LocalDerivationGoal::runChild()
if (pathExists(path))
ss.push_back(path);
- dirsInChroot.try_emplace("/etc/ssl/certs/ca-certificates.crt", settings.caFile, true);
+ if (settings.caFile != "")
+ dirsInChroot.try_emplace("/etc/ssl/certs/ca-certificates.crt", settings.caFile, true);
}
for (auto & i : ss) dirsInChroot.emplace(i, i);