Symlinks in OS X (10.4.1)
Simo Sorce
ssorce at redhat.com
Tue Oct 16 13:23:14 GMT 2007
On Mon, 2007-10-15 at 22:21 -0400, Matt McCutchen wrote:
> On 10/15/07, Wayne Davison <wayned at samba.org> wrote:
> > Is there a system call that allows their permissions to be changed
> > after they've been created? (Since lchmod is lacking.)
>
> I don't think so, but as Wesley hinted, one can effectively change a
> symlink's permissions by deleting it, setting the umask appropriately,
> and recreating it. I think this behavior is useful enough to be
> provided by a distributed patch. It does break hard links; are there
> any other caveats?
Deleting the symlink, means the link is not present for an undetermined
period, doesn't seem a really clean way to just change permissions.
Simo.
More information about the rsync
mailing list