mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Comment why AuthorizationExecuteWithPrivileges() is still being used
This commit is contained in:
1 parent
b2cb1bd531
commit
86d5d49111
1 file changed
+2
Vendored
+2
@@ -32,6 +32,8 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
// So ideally we would want to replace this (and Autoupdate.app) with SMJobBless (or maybe SMJobSubmit) & launchd,
|
||||
// but making that kind of privillege separation change is not trivial and would need to be heavily tested
|
||||
if (AuthorizationExecuteWithPrivileges(authorization, executablePath, options, arguments, NULL) == errAuthorizationSuccess) {
|
||||
#pragma clang diagnostic pop
|
||||
// Wait for every child to finish termination because we won't know which particular child is ours.
|
||||
|
||||
Reference in new issue
Block a user