Skip to content

Commit

Permalink
fix jnthn++'s report of infinite recursion in IO::Spec::Unix.rel2abs
Browse files Browse the repository at this point in the history
  • Loading branch information
labster committed May 12, 2013
1 parent 06eddc0 commit 738531a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/IO/Spec/Unix.pm
Expand Up @@ -167,7 +167,7 @@ my class IO::Spec::Unix {
method rel2abs( $path, $base is copy = $*CWD) {
return self.canonpath($path) if self.is-absolute($path);
if !self.is-absolute( $base ) {
$base = self.rel2abs( $base )
$base = self.rel2abs( $base, $*CWD ) unless $base eq $*CWD;
}
self.catdir( $base, $path );
}
Expand Down

0 comments on commit 738531a

Please sign in to comment.