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
[PATCH] ftmp-mktemp failing #2783
Comments
From perl@ctweten.amsite.comCreated by crt@kiski.netFile::Temp is usning Errno incorrectly. The patch is for Inline Patch--- lib/File/Temp.pm.orig Mon Oct 30 15:20:11 2000
+++ lib/File/Temp.pm Mon Oct 30 15:39:07 2000
@@ -124,7 +124,7 @@
use File::Spec 0.8;
use File::Path qw/ rmtree /;
use Fcntl 1.03;
-use Errno qw( EEXIST ENOENT ENOTDIR EINVAL );
+use Errno;
require VMS::Stdio if $^O eq 'VMS';
# Need the Symbol package if we are running older perl
@@ -443,7 +443,7 @@
# Error opening file - abort with error
# if the reason was anything but EEXIST
- unless ($! == EEXIST) {
+ unless ($!{EEXIST}) {
carp "File::Temp: Could not create temp file $path: $!";
return ();
}
@@ -473,7 +473,7 @@
# Abort with error if the reason for failure was anything
# except EEXIST
- unless ($! == EEXIST) {
+ unless ($!{EEXIST}) {
carp "File::Temp: Could not create directory $path: $!";
return ();
} Perl Info
|
From @jhiOn Mon, Oct 30, 2000 at 03:51:17PM -0500, Casey Tweten wrote:
Applied, thanks. Also forwarded to the File::Temp author Tim Jenness. |
Migrated from rt.perl.org#4553 (status was 'resolved')
Searchable as RT4553$
The text was updated successfully, but these errors were encountered: