diff options
-rw-r--r-- | nix/nix-daemon/guix-daemon.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc index b083fc2a44..71815169f7 100644 --- a/nix/nix-daemon/guix-daemon.cc +++ b/nix/nix-daemon/guix-daemon.cc @@ -296,6 +296,13 @@ main (int argc, char *argv[]) setenv ("NIX_SUBSTITUTERS", subst.c_str (), 1); } } + else + /* Clear the substituter list to make sure nothing ever gets + substituted, regardless of the client's settings. */ + setenv ("NIX_SUBSTITUTERS", "", 1); + + /* Effect the $NIX_SUBSTITUTERS change. */ + settings.update (); if (geteuid () == 0 && settings.buildUsersGroup.empty ()) fprintf (stderr, "warning: daemon is running as root, so " |