When user has a standard account (not administrator), he/she doesn't have rights to create a file in the Directory /Applications/. I try to create a file with the help of function authopen. This code doesn't work:
FILE *pFile = popen("/usr/libexec/authopen -stdoutpipe sys.openfile.readwritecreate./applications/tolea.txt", "w"); if(pFile == NULL){ NSLog(@"NOT Create"); }else{ NSLog(@"Create"); char *data = "Create"; pwrite(data, 1, size(data), pFile); } pclose(pFile); How would be the correct way to do? ________________________________________________________ Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]