diff options
author | Solar Designer <solar@openwall.com> | 2004-01-26 04:22:18 +0300 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2004-02-01 17:40:02 +0000 |
commit | 2359510ddb135dcc6e80153f51cff0a97b20b597 (patch) | |
tree | b074c5df813a1e3e529f0330620b456ecc4988e6 /ext/Time | |
parent | a95a5f75a0e72874474834cd9e274afa0f23b6d8 (diff) | |
download | perl-2359510ddb135dcc6e80153f51cff0a97b20b597.tar.gz |
Re: [perl #15063] /tmp issues
Message-ID: <20040125222218.GA13499@openwall.com>
Remove insecure usage of /tmp from code and documentation
p4raw-id: //depot/perl@22258
Diffstat (limited to 'ext/Time')
-rw-r--r-- | ext/Time/HiRes/Makefile.PL | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ext/Time/HiRes/Makefile.PL b/ext/Time/HiRes/Makefile.PL index fc6a155224..75dff900f3 100644 --- a/ext/Time/HiRes/Makefile.PL +++ b/ext/Time/HiRes/Makefile.PL @@ -71,19 +71,11 @@ my $nop3 = *File::Spec::catfile; # without changing it, and then I'd always forget to change it before a # release. Sorry, Edward :) -sub TMPDIR { - my $TMPDIR = - (grep(defined $_ && -d $_ && -w _, - ((defined $ENV{'TMPDIR'} ? $ENV{'TMPDIR'} : undef), - qw(/var/tmp /usr/tmp /tmp c:/temp))))[0]; - $TMPDIR || die "Cannot find writable temporary directory.\n"; -} - sub try_compile_and_link { my ($c, %args) = @_; my ($ok) = 0; - my ($tmp) = (($^O eq 'VMS') ? "sys\$scratch:tmp$$" : TMPDIR() . '/' . "tmp$$"); + my ($tmp) = "tmp$$"; local(*TMPC); my $obj_ext = $Config{obj_ext} || ".o"; |