diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-06-21 10:19:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 10:19:57 +0200 |
commit | db3de0727ec8416e1542f0158d0247a2cbe6e268 (patch) | |
tree | 5831b2c010ecf1d46e3e53147a64159992577566 /src/nix | |
parent | e6150de90d8db101209fc6363f5f7696ee8192c4 (diff) | |
parent | 4202a3bc4e7ce687be245539f6d796226f7d9e37 (diff) |
Merge pull request #4923 from edolstra/uds-store-root-param
UDSRemoteStore: Support the 'root' store parameter
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/run.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc index f684c5ea4..c0ba05a3e 100644 --- a/src/nix/run.cc +++ b/src/nix/run.cc @@ -43,8 +43,8 @@ struct RunCommon : virtual Command helper program (chrootHelper() below) to do the work. */ auto store2 = store.dynamic_pointer_cast<LocalStore>(); - if (store2 && store->storeDir != store2->realStoreDir) { - Strings helperArgs = { chrootHelperName, store->storeDir, store2->realStoreDir, program }; + if (store2 && store->storeDir != store2->getRealStoreDir()) { + Strings helperArgs = { chrootHelperName, store->storeDir, store2->getRealStoreDir(), program }; for (auto & arg : args) helperArgs.push_back(arg); execv(readLink("/proc/self/exe").c_str(), stringsToCharPtrs(helperArgs).data()); |