[Lldb-commits] [lldb] r251086 - Fix one more place where we were using the old

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 22 17:59:31 PDT 2015


Author: jmolenda
Date: Thu Oct 22 19:59:31 2015
New Revision: 251086

URL: http://llvm.org/viewvc/llvm-project?rev=251086&view=rev
Log:
Fix one more place where we were using the old
name of the xpc service.
<rdar://problem/23223624> 

Modified:
    lldb/trunk/source/Host/macosx/Host.mm

Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=251086&r1=251085&r2=251086&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Thu Oct 22 19:59:31 2015
@@ -1117,11 +1117,7 @@ LaunchProcessXPC(const char *exe_path, P
     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, P
             }
             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());




More information about the lldb-commits mailing list