Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Detecting lchown and falling back to chownby bluto (Curate) |
on Feb 01, 2008 at 16:40 UTC ( [id://665598]=note: print w/replies, xml ) | Need Help?? |
FWIW, if you have lchown available you'll chown the symlink but not the target. If you don't, you'll chown the target, but not the symlink. That seems kind of strange to me, but YMMV. I could see that if lchown was defined you'd want to change the symlink, but how you handle the target seems like it should always be the same (i.e. always chown the target, or always avoid it).
In Section
Seekers of Perl Wisdom
|
|