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

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

Thread Next
From:
Roderich Schupp
Date:
October 14, 2014 13:49
Subject:
Re: [perl #122635] Cwd::chdir fails on Cygwin for UNC paths
Message ID:
CAC9r9zbC=ixL7ckhTWHcdzj6pgMc=AEv+tW7dLoDDx8eU6-9ig@mail.gmail.com
On Tue, Oct 14, 2014 at 2:05 AM, Tony Cook via RT <perlbug-followup@perl.org
> wrote:

> 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.


This fixes aboce problem for me, thanx.

Cheers, Roderich

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