<rdar://problem/5966453> sandbox_init: Could not set default launchd policy, err=1100
--- trunk/launchd/src/launchd_core_logic.c 2008-05-22 16:10:43 UTC (rev 23636)
+++ trunk/launchd/src/launchd_core_logic.c 2008-05-28 17:21:25 UTC (rev 23637)
@@ -7046,7 +7046,7 @@
return BOOTSTRAP_NO_MEMORY;
}
- if (unlikely(ldc->euid || ldc->uid)) {
+ if (ldc->euid && (ldc->euid != getuid())) {
return BOOTSTRAP_NOT_PRIVILEGED;
}