diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-03 16:25:19 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-12-03 16:25:19 +0000 |
commit | f4279bcde0934c221df081c366c8fc776aa2be99 (patch) | |
tree | 96c6a1e8fc8ed6def802b86995abfc26da177654 /src/libmain/shared.cc | |
parent | 35247c4c9f55fd49d8838b0df963016fdcde0420 (diff) |
* Don't run setuid root when build-users is empty.
* Send startup errors to the client.
Diffstat (limited to 'src/libmain/shared.cc')
-rw-r--r-- | src/libmain/shared.cc | 2 |
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 |