aboutsummaryrefslogtreecommitdiff
path: root/src/libmain
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-03 16:25:19 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-03 16:25:19 +0000
commitf4279bcde0934c221df081c366c8fc776aa2be99 (patch)
tree96c6a1e8fc8ed6def802b86995abfc26da177654 /src/libmain
parent35247c4c9f55fd49d8838b0df963016fdcde0420 (diff)
* Don't run setuid root when build-users is empty.
* Send startup errors to the client.
Diffstat (limited to 'src/libmain')
-rw-r--r--src/libmain/shared.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 8577d34a5..a5401ba5d 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -244,7 +244,7 @@ static void setuidInit()
could also modify the Nix executables (say, replace them by a
Trojan horse), so the problem is already there. */
-#if 0 && HAVE_SETRESUID
+#if HAVE_SETRESUID
if (setresuid(nixUid, nixUid, nixUid)) abort();
if (setresgid(nixGid, nixGid, nixGid)) abort();
#elif HAVE_SETREUID