On Mon, Mar 15, 2004 at 12:57:08PM -0800, John W. Krahn ([EMAIL PROTECTED]) wrote:
> Wiggins D'Anconia wrote:
> > 
> > What is the OP really doing?  Why the need to change the ownership of a
> > link, and why wasn't it created with the "correct" ownership to begin with?
> 
> The ownership on a symlink should be irrelevant because the permissions
> are set to rwxrwxrwx by default.  Just to speculate, the OP may be doing
> something based on the ownership of the file and using lstat() instead
> of stat() which returns the owner of the symlink instead.

He referenced the "-h" option for "chown" which would allow this.  From 
the chown manpage on my Debian system -

-h, --no-dereference affect symbolic links instead of any referenced 
file (available only on sys­tems that can change the ownership of a symlink)

Why exactly he would want to do this I'm not sure either.  It would be nice 
if he would enlighten us, hint... hint OP.  I'm curious :)  
Kent

-- 
"Efficiency is intelligent laziness."
  -David Dunham

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to