Still having problume with Security API
Still having problume with Security API
- Subject: Still having problume with Security API
- From: Guy Winslow <email@hidden>
- Date: Tue, 15 May 2001 15:08:25 -0700
This is probable a stupid mistake, but i cant get this thing to work no
mater what. Hear is the code and the error message i am getting from the
system.
ERROR Message:
/bin/cp: /tmp/smb.conf: No such file or directory
Function i used:
- (void)doCommand
{
OSStatus err = 0;
char *argv[2];
argv[0] = SOURCE;
argv[1] = DESINATION;
if(![self authenticate])
return;
err = AuthorizationExecuteWithPrivileges(authorizationRef, COMMAND, 0,
argv, NULL);
if(err!=0)
{
NSBeep();
NSLog(@"Error %d in AuthorizationExecuteWithPrivileges",err);
}
}