From f4279bcde0934c221df081c366c8fc776aa2be99 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 3 Dec 2006 16:25:19 +0000 Subject: * Don't run setuid root when build-users is empty. * Send startup errors to the client. --- src/libmain/shared.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libmain/shared.cc') 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 -- cgit v1.2.3