[launchd-changes] [23946] branches/PR-7386864/launchd/src/launchd_core_logic.c

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 16 18:07:25 PST 2009


Revision: 23946
          http://trac.macosforge.org/projects/launchd/changeset/23946
Author:   dsorresso at apple.com
Date:     2009-11-16 18:07:24 -0800 (Mon, 16 Nov 2009)
Log Message:
-----------
Fix for rdar://problem/7386864.

Modified Paths:
--------------
    branches/PR-7386864/launchd/src/launchd_core_logic.c

Modified: branches/PR-7386864/launchd/src/launchd_core_logic.c
===================================================================
--- branches/PR-7386864/launchd/src/launchd_core_logic.c	2009-11-17 01:28:39 UTC (rev 23945)
+++ branches/PR-7386864/launchd/src/launchd_core_logic.c	2009-11-17 02:07:24 UTC (rev 23946)
@@ -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) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/launchd-changes/attachments/20091116/131ae6ec/attachment.html>


More information about the launchd-changes mailing list