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()



Ack, at 6/7/06, Mark Wagner said:

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.

Which seems to go against all documentation on symlinks included with Tiger.

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.

But it does. If the user cannot read the symlink (as is our case) then they cannot follow it.


I found more information about the bug at http://managingosx.wordpress.com/2006/03/02/radmind-151-tiger-and-symlinks/ with examples.
--



Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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
References: 
 >Re: permissions of symlink() (From: "Mark Wagner" <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.