|Sep 15, 2008, 11:42 PM||#1|
Permission denied problem
I am working in Carbon C application (Mac OS 10.4.7)
I want to open a pdf file which is placed in the desktop using System command.
My code is
The output is permission denied
What can i do to rectify this?
Thanks in advance....
|Sep 16, 2008, 12:09 AM||#2|
That isn't an executable file. You'll need to choose the program and pass the file as an argument, or use some other method to launch the file in the default application. I'm not sure how to do the latter with carbon.
|Sep 16, 2008, 04:55 AM||#4|
2. Since there is another thread about buffer overflows and security problems, I'd just say that the system function can lead to some rather nasty security holes.
3. Have a look at the LaunchServices APIs. Especially LSOpenCFURLRef and LSOpenFSRef.
|Sep 16, 2008, 07:14 AM||#5|
Everything gnasher729 said above is correct and you should really do 3) but if you want a quick and dirty fix try using
Sponsor me to cycle 100Km round London in the dark
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|ssh localhost Permission Denied||mkw5053||OS X||0||Jul 24, 2013 04:22 PM|
|sudo: can't open /private/etc/sudoers: Permission denied||ryannazaretian||OS X 10.8 Mountain Lion||3||May 25, 2013 10:33 PM|
|Access to Shared Folder denied permission||Plado||MacBook||2||Mar 16, 2013 03:26 PM|
|Terminal Permission Denied Greeting||Ed91||OS X||2||Aug 1, 2012 03:54 AM|
All times are GMT -5. The time now is 03:58 AM.