Stderr from AuthorizationExecuteWithPrivileges
Stderr from AuthorizationExecuteWithPrivileges
- Subject: Stderr from AuthorizationExecuteWithPrivileges
- From: "Sven A. Schmidt" <email@hidden>
- Date: Tue, 12 Jun 2001 13:50:05 +0200
In my project, I use the Authorization framework to access a cli tool
with root privileges. Reading from stdout and writing to stdin works
fine via the (FILE **)communicationsPipe parameter in
AuthorizationExecuteWithPrivileges(...). But the cli tool (crontab) also
returns stuff via stderr which I'd need to get a hold of.
Is there a way to get a handle to stderr?
What about the return value?
Or, even better, is there a way to promote an NSTask to root privileges?
Is there any special reason for the double star in (FILE
**)communicationsPipe? Is it an "implicit" array with stderr hiding in a
higher offset?
TIA,
Sven