0
글쎄, 나는 다음과 같은 코드를 가지고있다.AuthorizationExecuteWithPrivileges pipe?
FILE *file;
AuthorizationRef authorizationRef;
OSStatus status;
...
status = AuthorizationExecuteWithPrivileges(authorizationRef, "/sbin/mount_hfs", kAuthorizationFlagDefaults, args, &file);
...
또한 "mount_hfs : Invalid argument"라는 에러가 예상된다. 이 오류를 쉽게 추적 할 수 있습니까?
처럼 : return NO; //if error is "mount_hfs: Invalid argument"
파일이 null이 아니지만 인쇄 : |
AuthorizationExecuteWithPrivileges는 매우 권장되지 않습니다. – Richard
글쎄, 어떤 방법이 더 좋고 SL/Lion과 잘 작동하는지 알고 싶습니다. 이것은 veeery가 도움이 될 것입니다. :) – user840250
이 종류의 디버깅에 대해서는 많은 조언이 없지만 IPC 명령을 보낼 수있는 특권 데몬을 사용합니다. – Richard