texlive-specs-n/latex2man_tmphandling.dif

24 lines
639 B
Plaintext
Raw Normal View History

---
texmf-dist/scripts/latex2man/latex2man | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--- texmf-dist/scripts/latex2man/latex2man
+++ texmf-dist/scripts/latex2man/latex2man 2018-05-03 08:59:29.295058028 +0000
@@ -20,6 +20,7 @@
require 5.0004_03;
use Getopt::Std;
+use File::Temp qw/tempfile/;
no warnings 'once';
# use strict 'vars';
@@ -30,7 +31,7 @@ sub date2str;
$VERSION = "1.26";
$DATE = date2str ('$Date: 2017/10/06 17:19:31 $' =~ m|(\d+/\d+/\d+)|);
-$tmp = "/tmp/$CMD.$$";
+(undef, $tmp) = tempfile;
##################################################################
# check option and arguments