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

[perl #122635] Cwd::chdir fails on Cygwin for UNC paths

Thread Previous
From:
Tony Cook via RT
Date:
October 14, 2014 00:05
Subject:
[perl #122635] Cwd::chdir fails on Cygwin for UNC paths
Message ID:
rt-4.0.18-21584-1413245127-153.122635-15-0@perl.org
On Thu Aug 28 08:16:38 2014, roderich.schupp@gmail.com wrote:
> On Cygwin, Windows UNC paths like \\foo.com\users\jluser are
> represented using the POSIX "leading //" notation, e.g. //
> foo.com/users/jluser.
> 
> Cwd::chdir fails for these paths:
> 
> $ perl -MCwd -e 'Cwd::chdir("//foo.com/users/jluser") or die "chdir:
> $!";'
> chdir: No such file or directory at -e line 1.
> 
> CORE::chdir works as expected.

Please try the attached patch.

Tony

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=122635

Thread Previous


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