• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting output from AuthorizationExecuteWithPrivileges()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


  • Prev by Date: Re: [NSApp setDelegate]
  • Next by Date: Re: learning OpenGL
  • Previous by thread: Re: Rhapsody Developer's Guide
  • Next by thread: Dereferencing Pointers in Debugger?
  • Index(es):
    • Date
    • Thread