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: permissions of symlink()



On 6/7/06, Rosyna <email@hidden> wrote:
Where exactly do symbolic links created with symlink() get their
permissions? The lstat man page says it is from the parent folder,
yet when actually creating a symlink in practice, they have neither
the permissions of the target nor the parent directory. The
symlink(7) man page mentions lchmod() but that function doesn't seem
to be a part of OS X.

The permissions seem to be the umask permissions for newly-created directories.

How can we ensure that relative symbolic links we create are able to
be followed?

It shouldn't matter. It's the permissions on the target, not the permissions on the link, that limit what you can do with the target.

--
Mark Wagner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to 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.