-
Notifications
You must be signed in to change notification settings - Fork 567
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
Cwd::cwd() use in File::Spec::Unix use causes unnecessary fork() #8962
Comments
From steve@silug.orgThis is a bug report for perl from steve@silug.org, File::Spec::Unix contains the following code: sub _cwd { I think we can safely say that getcwd() will exist on anything Unix-y In light testing, the following patch seems to work fine: Inline Patch--- perl-5.8.8/lib/File/Spec/Unix.pm.orig 2005-08-27 12:14:38.000000000 -0500
+++ perl-5.8.8/lib/File/Spec/Unix.pm 2007-07-07 22:13:51.000000000 -0500
@@ -470,7 +470,7 @@
# File::Spec subclasses use this.
sub _cwd {
require Cwd;
- Cwd::cwd();
+ Cwd::getcwd();
}
Flags: This perlbug was built using Perl v5.8.8 in the Red Hat build system. Site configuration information for perl v5.8.8: Configured by Red Hat, Inc. at Wed May 16 22:56:53 EDT 2007. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Locally applied patches: @INC for perl v5.8.8: Environment for perl v5.8.8: |
From @rgsThanks, applied as #31686 to bleadperl. |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
From @schwernTurns out this caused a bug on OS X and broke the documented interface |
Migrated from rt.perl.org#43633 (status was 'resolved')
Searchable as RT43633$
The text was updated successfully, but these errors were encountered: