Getting output from AuthorizationExecuteWithPrivileges()
Getting output from AuthorizationExecuteWithPrivileges()
- Subject: Getting output from AuthorizationExecuteWithPrivileges()
- From: "Mike Vannorsdel" <email@hidden>
- Date: Tue, 5 Jun 2001 14:31:54 -0600
I'm trying to get the output from AuthorizationExecuteWithPrivileges():
...
...
FILE * fptr;
char * args[2];
args[0]="-al";
args[1]=NULL;
err=AuthorizationExecuteWithPrivileges(authorizationRef, "/bin/ls", 0,
args, &fptr);
..
..
However, when I try to read fptr using fgets or fgetc, all I get is EOF
(even after rewinding), nothing else. What's going on here?