Revision
23325
Author
zarzycki@apple.com
Date
2007-08-01 09:25:38 -0700 (Wed, 01 Aug 2007)

Log Message

Fix an editing error that inversed the logic.

Modified Paths

Diff

Modified: trunk/launchd/src/launchctl.c (23324 => 23325)


--- trunk/launchd/src/launchctl.c	2007-08-01 15:38:50 UTC (rev 23324)
+++ trunk/launchd/src/launchctl.c	2007-08-01 16:25:38 UTC (rev 23325)
@@ -224,7 +224,7 @@
 		is_managed = true;
 	}
 
-	if (getuid() && !is_managed) {
+	if (getuid() == 0 && !is_managed) {
 		mach_port_t root_bs = str2bsport("/");
 		task_set_bootstrap_port(mach_task_self(), root_bs);
 		mach_port_deallocate(mach_task_self(), bootstrap_port);