diff options
author | Jason Molenda <jmolenda@apple.com> | 2015-10-23 00:59:31 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2015-10-23 00:59:31 +0000 |
commit | a96a8c4c08a3c48db1790d262bae1948e79baa35 (patch) | |
tree | 26aed5a91a57251648d3ad2e7d71d0f54c047e79 | |
parent | bf6ee32ca5c59bd44f5dd06e8f69ffaca992072c (diff) | |
download | bcm5719-llvm-a96a8c4c08a3c48db1790d262bae1948e79baa35.tar.gz bcm5719-llvm-a96a8c4c08a3c48db1790d262bae1948e79baa35.zip |
Fix one more place where we were using the old
name of the xpc service.
<rdar://problem/23223624>
llvm-svn: 251086
-rw-r--r-- | lldb/source/Host/macosx/Host.mm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm index 6c3d2617380..c70769d8292 100644 --- a/lldb/source/Host/macosx/Host.mm +++ b/lldb/source/Host/macosx/Host.mm @@ -1117,11 +1117,7 @@ LaunchProcessXPC(const char *exe_path, ProcessLaunchInfo &launch_info, lldb::pid const char *xpc_service = nil; bool send_auth = false; AuthorizationExternalForm extForm; - if ((requested_uid == UINT32_MAX) || (requested_uid == HostInfo::GetEffectiveUserID())) - { - xpc_service = "com.apple.lldb.launcherXPCService"; - } - else if (requested_uid == 0) + if (requested_uid == 0) { if (AuthorizationMakeExternalForm(authorizationRef, &extForm) == errAuthorizationSuccess) { @@ -1137,12 +1133,12 @@ LaunchProcessXPC(const char *exe_path, ProcessLaunchInfo &launch_info, lldb::pid } return error; } - xpc_service = "com.apple.lldb.launcherRootXPCService"; + xpc_service = LaunchUsingXPCRightName; } else { error.SetError(4, eErrorTypeGeneric); - error.SetErrorStringWithFormat("Launching via XPC is only currently available for either the login user or root."); + error.SetErrorStringWithFormat("Launching via XPC is only currently available for root."); if (log) { error.PutToLog(log, "%s", error.AsCString()); |