~ruther/guix-local

aa0f8409db9abb4d8d04127b1072f12a64b5f7ee — Ludovic Courtès 10 years ago d2aa122
daemon: Always require a signature when importing an archive.

* nix/nix-daemon/nix-daemon.cc (performOp): Pass true as the first argument to
  'performOp'.
1 files changed, 4 insertions(+), 1 deletions(-)

M nix/nix-daemon/nix-daemon.cc
M nix/nix-daemon/nix-daemon.cc => nix/nix-daemon/nix-daemon.cc +4 -1
@@ 440,7 440,10 @@ static void performOp(bool trusted, unsigned int clientVersion,
    case wopImportPaths: {
        startWork();
        TunnelSource source(from);
        Paths paths = store->importPaths(!trusted, source);

	/* Unlike Nix, always require a signature, even for "trusted"
	   users.  */
        Paths paths = store->importPaths(true, source);
        stopWork();
        writeStrings(paths, to);
        break;