mirror of
https://github.com/NixOS/nix.git
synced 2025-02-16 17:02:28 +00:00
NIX_REMOTE_SYSTEMS: actually support multiple :-separated entries
Bug not reported in 6 years, but here you go. Also it is safe to switch to normal concatStringsSep behavior because tokenizeString does not produce empty items.
This commit is contained in:
parent
39878c8979
commit
3f37785afd
@ -35,6 +35,8 @@
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
#include "strings.hh"
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
||||
@ -82,7 +84,7 @@ Settings::Settings()
|
||||
Strings ss;
|
||||
for (auto & p : tokenizeString<Strings>(*s, ":"))
|
||||
ss.push_back("@" + p);
|
||||
builders = dropEmptyInitThenConcatStringsSep(" ", ss);
|
||||
builders = concatStringsSep("\n", ss);
|
||||
}
|
||||
|
||||
#if defined(__linux__) && defined(SANDBOX_SHELL)
|
||||
|
Loading…
Reference in New Issue
Block a user