[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Setting x-bit on symlinks to dirs vs files.

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2007-09-17 22:42:10 CEST

Karl Fogel <kfogel@red-bean.com> writes:

> As far as I know, the only way to affect the bits on the link
> itself is via the system call lchmod() (which is to chmod() as
> lstat() is to stat()).

I think the permissions of a symbolic link are completely ignored on a
Unix system.

> I guess I lean toward Solution #1 right now, but would like to hear
> others' thoughts.

I think that setting svn:executable on a symbolic link should have no
effect, perhaps even be an error, irrespective of whether the symbolic
link points at a file or directory. I think it is wrong for the
client to change the permission of a target outside the working copy,
if that is where the symbolic link points, and if it points inside the
working copy then we can require the user to set permissions on the
target not the link.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Sep 17 22:47:38 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.