summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dc3c11c)
If _perl_abs_path() couldn't opendir("..") then it would call
File::Spec->rel2abs, which was liable to call back to Cwd::getcwd() and
thus to _perl_abs_path(), producing an infinite recursion. The call to
File::Spec->rel2abs is of dubious value anyway, so just turn that into
an error return. Fixes [perl #132651].
local *PARENT;
unless (opendir(PARENT, $dotdots))
{
local *PARENT;
unless (opendir(PARENT, $dotdots))
{
- # probably a permissions issue. Try the native command.
- require File::Spec;
- return File::Spec->rel2abs( $start, _backtick_pwd() );
}
unless (@cst = stat($dotdots))
{
}
unless (@cst = stat($dotdots))
{
use warnings;
use strict;
use warnings;
use strict;
-use Test::More skip_all => "infinite loop seen on FreeBSD [perl #132651]";
-
use Config;
use Errno qw(ENOENT);
use File::Temp qw(tempdir);
use Config;
use Errno qw(ENOENT);
use File::Temp qw(tempdir);