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
File::Path::mkpath resets errno #8095
Comments
From @kvr000Created by @kvr000When calling File::Path::mkpath and one of the mkdir fails, the Best regards, Inline Patchdiff -urN perl-5.8.7-orig/lib/File/Path.pm perl-5.8.7/lib/File/Path.pm
--- perl-5.8.7-orig/lib/File/Path.pm 2005-09-06 16:44:03.563483247 +0200
+++ perl-5.8.7/lib/File/Path.pm 2005-09-06 16:44:27.132062577 +0200
@@ -165,7 +165,7 @@
unless (mkdir($path,$mode)) {
my $e = $!;
# allow for another process to have created it meanwhile
- croak "mkdir $path: $e" unless -d $path;
+ $! = $e, croak "mkdir $path: $e" unless -d $path;
}
push(@created, $path);
} Perl Info
|
From @rgskvr@centrum.cz (via RT) wrote:
Thanks, applied to the development sources of perl as change #25362. |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#37091 (status was 'resolved')
Searchable as RT37091$
The text was updated successfully, but these errors were encountered: