1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04: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:
Robert Hensing 2024-07-13 00:07:42 +02:00
parent 39878c8979
commit 3f37785afd

View file

@ -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)