Mac: Better error-handling in sandbox setup code

svn path=/trunk/boinc/; revision=14105
This commit is contained in:
Charlie Fenton 2007-11-07 12:03:16 +00:00
parent 5a757f73f6
commit 50487a68c5
1 changed files with 1 additions and 1 deletions

View File

@ -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 {