Don't ultimately trust the signed paths

Like the old implem did (and like you'd want it to be anyways)
This commit is contained in:
Théophane Hufschmitt 2022-07-19 19:46:00 +02:00
parent 34d90fbe22
commit 56f6f3725f

View file

@ -305,7 +305,9 @@ void Store::addMultipleToStore(
[&](const StorePath & path) { [&](const StorePath & path) {
checkInterrupt(); checkInterrupt();
auto & [info, source] = *infosMap.at(path); auto & [info_, source] = *infosMap.at(path);
auto info = info_;
info.ultimate = false;
if (!isValidPath(info.path)) { if (!isValidPath(info.path)) {
MaintainCount<decltype(nrRunning)> mc(nrRunning); MaintainCount<decltype(nrRunning)> mc(nrRunning);