Fix an editing error that inversed the logic.
--- 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);