develooper Front page | perl.perl5.porters | Postings from October 2011

RE: [perl #99704] Add symlink support for Win32

Thread Previous | Thread Next
From:
Jan Dubois
Date:
October 26, 2011 09:49
Subject:
RE: [perl #99704] Add symlink support for Win32
Message ID:
03d901cc93ff$2e4c07e0$8ae417a0$@activestate.com
On Wed, 26 Oct 2011, Ed Avis wrote:
> In many Windows shops it's common practice to run everything as
> an administrator account,

What a depressing thought.  I sure hope this isn't true anymore.

>                           so I think it would be useful for perl
> to support Win32 symlinks, even if it won't work when running as
> non-admin.

Note though that running under an administrative account is not
enough; the perl process would also have to be run with elevated
privileges as well.

The other complication is that for NTFS symlinks you need to know if
the target is going to be a file or a directory when you create it. So
what do you do when the target does not yet exist when symlink() is
being called? 

And if you only care about symlinks for directories, then there is
always Win32::Symlink on CPAN which already implements this.

Cheers,
-Jan



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About