aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-11-22 15:10:47 +0100
committerGitHub <noreply@github.com>2021-11-22 15:10:47 +0100
commit720ed476786a94514aedfc56a1f30a343ace5d48 (patch)
treea30ce7032f7ceea27009a60af72da3cc57911260 /src/libexpr/primops.cc
parentdcaa8dfd10d73986ac0edea63ee409521a209cc8 (diff)
parent4318ba2ec568a9fe7d5b4b014df6b7d252ae3481 (diff)
Merge pull request #5613 from tomberek/allow_realpath
add real path to allowedPaths
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 5bd4e5545..8dccf6401 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -70,7 +70,7 @@ void EvalState::realiseContext(const PathSet & context)
if (outputPaths.count(outputName) == 0)
throw Error("derivation '%s' does not have an output named '%s'",
store->printStorePath(drvPath), outputName);
- allowedPaths->insert(store->printStorePath(outputPaths.at(outputName)));
+ allowPath(outputPaths.at(outputName));
}
}
}