Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fopen



On Thursday 30 June 2005 14:13, Carl Smith wrote:
> Checking my permissions I see that I, the current user, for the folder
> that the copied Xcode application is in, is drwx------, while the copied
> folders have permissions set at, drwxr-xr-x.
>
> So would my current permissions have to match the copied folders
> permissions? I would think that the copied folders had higher permission
> so the fopen would work anyway.
>
> Going on to answer everyone else who is helping.
>
> The return 'errno' from fopen is ENOENT. But as I said this was working
> before I signed on as a new user. The fopen used a string, i.e.,
> "otr/mynewfolder/myfile.db" and would create the directory tree along
> with the empty file 'myfile.db'. As stated in 'man fopen' ".. The file
> is created if it does not exist, ..."

But fopen will NOT create missing directories, at least not on any unix box 
I've seen....

-- 
Don Krause                                          ph: 909.799.8327
Systems Administrator                             page: 909.512.0174
Optivus Technology, Inc                  e-mail: email@hidden
"This message represents the official view of the voices in my head"
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >RE: fopen (From: "Carl Smith" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.