From 50487a68c5c620046a279c3d0a7420037cbc89eb Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 7 Nov 2007 12:03:16 +0000 Subject: [PATCH] Mac: Better error-handling in sandbox setup code svn path=/trunk/boinc/; revision=14105 --- clientgui/mac/SetupSecurity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {