On Sun, Mar 14, 2004 at 06:20:21PM -0500, Wiggins d'Anconia wrote:
Ohad Ohad wrote:
chown seems to be able only to follow links and change the destination.
Anyway to change the link itself, I wouldn't want to run system("chown -h $file") . . .
I'm using various unix machine (Linux, SunOs etc.)
Remove the link and re-create it.
perldoc -f unlink perldoc -f symlink
Hardly elegant or safe though, is it?
This recent thread on perl5-porters may be interesting:
http://groups.google.com/groups?threadm=rt-3.0.8-27547-81120.4.31272465729066%40perl.org
Interesting discussion. Agreed, it is neither elegant or safe, but I am not sure shelling out to chown is either and there weren't any other posts from better gurus than I after a few days so I thought I would propose a solution.
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?
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>