aboutsummaryrefslogtreecommitdiff
path: root/src/nix-daemon
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-03-14 13:52:13 +0100
committerEelco Dolstra <edolstra@gmail.com>2019-03-14 13:53:34 +0100
commit578ed7a259ddf7a85c85fe4e0200179ae908171e (patch)
tree3d8a70f72d2b1738da4d766606728f491de7fba6 /src/nix-daemon
parent53522cb6ac19bd1da35a657988231cce9387be9c (diff)
findRoots(): Don't censor for trusted users
They're pretty much root anyway.
Diffstat (limited to 'src/nix-daemon')
-rw-r--r--src/nix-daemon/nix-daemon.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-daemon/nix-daemon.cc b/src/nix-daemon/nix-daemon.cc
index dd8b9bd1e..8d63b8f36 100644
--- a/src/nix-daemon/nix-daemon.cc
+++ b/src/nix-daemon/nix-daemon.cc
@@ -475,7 +475,7 @@ static void performOp(TunnelLogger * logger, ref<Store> store,
case wopFindRoots: {
logger->startWork();
- Roots roots = store->findRoots(true);
+ Roots roots = store->findRoots(!trusted);
logger->stopWork();
size_t size = 0;