]> git.donarmstrong.com Git - perltidy.git/commitdiff
it's tmpnam, not tempnam and fh_tmp, not fh_temp
authorDon Armstrong <don@donarmstrong.com>
Sat, 8 Mar 2014 06:18:32 +0000 (22:18 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sat, 8 Mar 2014 06:18:32 +0000 (22:18 -0800)
debian/patches/fix_insecure_tmpnam_usage_740670

index 0d3b265ec760f9d45acd86d4c20a080ea1497036..867909f1b2152b06b5c9dbd262525c03a1099e11 100644 (file)
@@ -74,7 +74,7 @@ Last-Update: 2010-03-29
 -        $tmpfile = Perl::Tidy::make_temporary_filename();
 -    }
 -    my $fh_tmp = IO::File->new( $tmpfile, 'w' );
 -        $tmpfile = Perl::Tidy::make_temporary_filename();
 -    }
 -    my $fh_tmp = IO::File->new( $tmpfile, 'w' );
-+    my ($fh_temp,$tempfile) = tempfile();
++    my ($fh_tmp,$tmpfile) = tempfile();
      unless ($fh_tmp) {
          Perl::Tidy::Warn
            "unable to open temporary file $tmpfile; cannot use pod2html\n";
      unless ($fh_tmp) {
          Perl::Tidy::Warn
            "unable to open temporary file $tmpfile; cannot use pod2html\n";