Hi Michael,

On Sunday 02 January 2011 10:09:34 Michael Stone wrote:
> On Sat, Jan 01, 2011 at 10:24:47PM -0600, Raphael Geissert wrote:
> >Attached patch is a quick implementation that behaves as expected. It
> >works by opening (O_RDONLY) the files and using fchmod afterwards. This
> >of course implies that files and directories to be chmod(1)ed need to be
> >at least O_RDONLY. I couldn't figure out another way to implement this
> >option safely.
> 
> That's not what -h does on the other commands; in those cases they use
> lchown to change the ownership of the symlink itself--and there's no
> corresponding lchmod.

Yes, that's exactly the reason why I implemented it that way. FreeBSD is the 
only OS that I know that provides lchmod(2)

Regards,
-- 
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to