Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for File::chdir #4

Merged
merged 5 commits into from Dec 3, 2012
Merged

Fixes for File::chdir #4

merged 5 commits into from Dec 3, 2012

Conversation

jberger
Copy link
Member

@jberger jberger commented Dec 2, 2012

These of course need to be tested on many platforms, but I believe from looking through the alias mapping in Cwd that Cwd::getcwd is going to be safer than Cwd::abs_path.

…rms?) than abs_path.

Some platforms implement abs_path via fast_abs_path which is a more dangerous function. getcwd doesn't seem to suffer that failing.
I filed a bug on Cwd (https://rt.perl.org/rt3/Public/Bug/Display.html?id=115962) but this fix for File::chdir should work immediately.
Addresses GitHub #3
…d). README.pod will be rebuilt before release.
@jberger
Copy link
Member Author

jberger commented Dec 2, 2012

It is now my assessment that Cwd::abs_path should never be used without argument to get the working directory. Cwd::getcwd exists for this purpose and doesn't (appear) to suffer from die-ing (with a misleading message) when in a directory with a newline in it.

@jberger jberger mentioned this pull request Dec 3, 2012
dagolden pushed a commit that referenced this pull request Dec 3, 2012
@dagolden dagolden merged commit 7338fa6 into Perl-Toolchain-Gang:master Dec 3, 2012
@dagolden
Copy link

dagolden commented Dec 3, 2012

Thank you very much. Released to CPAN as 0.1008

@jberger
Copy link
Member Author

jberger commented Dec 3, 2012

Glad to help. It was a rather fun find actually! I took some pleasure in documenting it too :-) http://blogs.perl.org/users/joel_berger/2012/12/a-question-of-location.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants