about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-12-19T10·49+0100
committerEelco Dolstra <edolstra@gmail.com>2016-12-19T10·49+0100
commit05862209de4ceb0c11f3ce2bd97062894f3e39ec (patch)
treece33ffa6daa3c7e8754797a57171545dc69558de /src
parent621a53f64d60b5e42bffb5450539203ebf639bc4 (diff)
Revert "Give root a valid home directory"
This reverts commit ec7d498b72b0e283814c27cbc6c064496f95445d.
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 31631ed3f356..f702433a02f2 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -2010,9 +2010,9 @@ void DerivationGoal::startBuilder()
            Samba-in-QEMU. */
         createDirs(chrootRootDir + "/etc");
 
-        writeFile(chrootRootDir + "/etc/passwd", fmt(
-            "root:x:0:0:Nix build user:%s:/noshell\n"
-            "nobody:x:65534:65534:Nobody:/:/noshell\n", "/tmp"));
+        writeFile(chrootRootDir + "/etc/passwd",
+            "root:x:0:0:Nix build user:/:/noshell\n"
+            "nobody:x:65534:65534:Nobody:/:/noshell\n");
 
         /* Declare the build user's group so that programs get a consistent
            view of the system (e.g., "id -gn"). */