Modified: trunk/launchd/src/launchd_core_logic.c (23957 => 23958)
--- trunk/launchd/src/launchd_core_logic.c 2009-11-18 03:39:31 UTC (rev 23957)
+++ trunk/launchd/src/launchd_core_logic.c 2009-11-30 23:55:50 UTC (rev 23958)
@@ -7673,10 +7673,10 @@
*serviceportp = machservice_port(ms);
kr = BOOTSTRAP_SUCCESS;
- } else if (!per_pid_lookup && (inherited_bootstrap_port != MACH_PORT_NULL)) {
+ } else if (inherited_bootstrap_port != MACH_PORT_NULL) {
job_log(j, LOG_DEBUG, "Mach service lookup forwarded: %s", servicename);
/* Clients potentially check the audit token of the reply to verify that the returned send right is trustworthy. */
- job_assumes(j, vproc_mig_look_up2_forward(inherited_bootstrap_port, srp, servicename, 0, 0) == 0);
+ job_assumes(j, vproc_mig_look_up2_forward(inherited_bootstrap_port, srp, servicename, target_pid, flags) == 0);
/* The previous routine moved the reply port, we're forced to return MIG_NO_REPLY now */
return MIG_NO_REPLY;
} else if (pid1_magic && j->anonymous && ldc->euid >= 500 && strcasecmp(j->mgr->name, VPROCMGR_SESSION_LOGINWINDOW) == 0) {