I believe AuthorizationExecuteWithPrivileges() is expecting NULL-
terminated, UTF-8, C-string as the args instead of non-terminated
unichar array.
You can use -UTF8String methods for that.
Since the second arg to the function is defined to be a POSIX path
representation, you should use -fileSystemRepresentation instead.
Aki
On 2007/10/24, at 15:58, deepak gopal wrote:
Hi
The method performChange would run a script which would modify a
plist.
When the control reaches line 12 I get this message "/: /: is a
directory" in the run log and when I check in the debugger I find
that plistScript and garage have "/" as the value. So I know where
the problem is but dont' know what's causing it or what the solution
is.
There is no problem with the authorization or with the paths
copyPlistScript_ (/tmp/script) or garage_ (/tmp/garage)
I assume that the memory allocation in line 4 and line 6 would give
the same result.