--- texmf-dist/scripts/latex2man/latex2man +++ texmf-dist/scripts/latex2man/latex2man 2012-03-29 05:35:29.180854334 -0400 @@ -20,6 +20,8 @@ use Getopt::Std; +use File::Temp qw/tempfile/; + # use strict 'vars'; $CMD=`basename $0`; chop ($CMD); @@ -29,7 +31,7 @@ $VERSION = "1.24"; $DATE = date2str ('$Date: 2010/12/22 12:44:30 $' =~ m|(\d+/\d+/\d+)|); -$tmp = "/tmp/$CMD.$$"; +(undef, $tmp) = tempfile; ################################################################## # check option and arguments