diff options
author | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-07-19 19:46:00 +0200 |
---|---|---|
committer | Théophane Hufschmitt <theophane.hufschmitt@tweag.io> | 2022-07-19 19:46:00 +0200 |
commit | 56f6f3725f4fbeeb7900ae95bd71d559695b3dc5 (patch) | |
tree | 4c24843468dfbd2e92c0f459ee5747852f0f968b /src/libstore | |
parent | 34d90fbe224e7b626366f98ea1bc9e370d9cb534 (diff) |
Don't ultimately trust the signed paths
Like the old implem did (and like you'd want it to be anyways)
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/store-api.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 61a12e84a..06d03bff2 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -305,7 +305,9 @@ void Store::addMultipleToStore( [&](const StorePath & path) { checkInterrupt(); - auto & [info, source] = *infosMap.at(path); + auto & [info_, source] = *infosMap.at(path); + auto info = info_; + info.ultimate = false; if (!isValidPath(info.path)) { MaintainCount<decltype(nrRunning)> mc(nrRunning); |