mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=10412
This commit is contained in:
parent
18acc94b6e
commit
e5e964d7c1
|
@ -700,7 +700,7 @@ OSStatus DoPrivilegedExec(const char *pathToTool, char *arg1, char *arg2, char *
|
|||
char *args[8];
|
||||
OSStatus err;
|
||||
FILE *ioPipe;
|
||||
char *p, junk[16];
|
||||
char *p, junk[256];
|
||||
|
||||
err = GetAuthorization();
|
||||
if (err != noErr) {
|
||||
|
@ -718,7 +718,10 @@ OSStatus DoPrivilegedExec(const char *pathToTool, char *arg1, char *arg2, char *
|
|||
|
||||
err = AuthorizationExecuteWithPrivileges (gOurAuthRef, pathToTool, 0, args, &ioPipe);
|
||||
// We use the pipe to signal us when the command has completed
|
||||
p = fgets(junk, sizeof(junk), ioPipe);
|
||||
do {
|
||||
p = fgets(junk, sizeof(junk), ioPipe);
|
||||
} while (p);
|
||||
|
||||
fclose (ioPipe);
|
||||
#if 0
|
||||
if (strcmp(arg2, "-R") == 0)
|
||||
|
|
Loading…
Reference in New Issue