diff --git a/clientgui/mac/SetupSecurity.cpp b/clientgui/mac/SetupSecurity.cpp index eb2825c94f..f3e69b6e7a 100644 --- a/clientgui/mac/SetupSecurity.cpp +++ b/clientgui/mac/SetupSecurity.cpp @@ -901,7 +901,7 @@ OSStatus DoPrivilegedExec(const char *pathToTool, char *arg1, char *arg2, char * args[5] = NULL; err = AuthorizationExecuteWithPrivileges (gOurAuthRef, pathToTool, 0, args, &ioPipe); - if (err = noErr) { + if (err == noErr) { if (ioPipe) { // We use the pipe to signal us when the command has completed do {