This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
correct error returns from fast_abs_path()
authorZefram <zefram@fysh.org>
Tue, 16 Jan 2018 05:16:41 +0000 (05:16 +0000)
committerZefram <zefram@fysh.org>
Tue, 16 Jan 2018 05:22:25 +0000 (05:22 +0000)
commita97021b9d2cff6f0f8cbe5a5dd51187c5bad275e
tree05effe038dd948111bd1b4da760bfca2808c752f
parent4d8d7a4152178168855cb6a4506025a5d82465c7
correct error returns from fast_abs_path()

fast_abs_path() is documented as behaving like abs_path(), and is even
used as the main version of abs_path() on Cygwin, so it should indicate
errors in the same manner.  It was croaking; change this to return undef
with $! set.  Leave croaking for the error that breaks the abs_path()
rules, where fast_abs_path() has changed cwd and fails to change back.
Problem noted on [perl #132648].
dist/PathTools/Cwd.pm