diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-08-28T14·29+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-08-28T14·29+0200 |
commit | 7298a38a07d62d2077ca30a3ff619e32edb4eb1e (patch) | |
tree | b8b82fa4be3630bf0c1e355b01ad5dd64ddacaca /src/libstore/remote-store.cc | |
parent | ad03159e259f07da0049ba6e2b2f3d27227f2326 (diff) |
Don't send certain setting overrides to the daemon
These are already handled separately. This fixes warnings like warning: ignoring the user-specified setting 'max-jobs', because it is a restricted setting and you are not a trusted user when using the -j flag.
Diffstat (limited to 'src/libstore/remote-store.cc')
-rw-r--r-- | src/libstore/remote-store.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstore/remote-store.cc b/src/libstore/remote-store.cc index 15faf78a526d..1c2e23f9cd5d 100644 --- a/src/libstore/remote-store.cc +++ b/src/libstore/remote-store.cc @@ -191,6 +191,13 @@ void RemoteStore::setOptions(Connection & conn) if (GET_PROTOCOL_MINOR(conn.daemonVersion) >= 12) { std::map<std::string, Config::SettingInfo> overrides; globalConfig.getSettings(overrides, true); + overrides.erase(settings.keepFailed.name); + overrides.erase(settings.keepGoing.name); + overrides.erase(settings.tryFallback.name); + overrides.erase(settings.maxBuildJobs.name); + overrides.erase(settings.maxSilentTime.name); + overrides.erase(settings.buildCores.name); + overrides.erase(settings.useSubstitutes.name); conn.to << overrides.size(); for (auto & i : overrides) conn.to << i.first << i.second.value; |