| 1 |
Do no use predictable temp file names, but mktemp |
| 2 |
patch by Tatsuya Kinoshita |
| 3 |
Debian bug #668779 |
| 4 |
--- |
| 5 |
texmf-dist/scripts/latex2man/latex2man | 4 ++-- |
| 6 |
1 file changed, 2 insertions(+), 2 deletions(-) |
| 7 |
|
| 8 |
--- texlive-extra-2025.20260124.orig/texmf-dist/scripts/latex2man/latex2man |
| 9 |
+++ texlive-extra-2025.20260124/texmf-dist/scripts/latex2man/latex2man |
| 10 |
@@ -31,8 +31,6 @@ |
| 11 |
$VERSION = "1.30"; |
| 12 |
$DATE = date2str ('$Date: 2026/01/16 08:11:30 $' =~ m|(\d+/\d+/\d+)|); |
| 13 |
|
| 14 |
-$tmp = "/tmp/$CMD.$$"; |
| 15 |
- |
| 16 |
################################################################## |
| 17 |
# check option and arguments |
| 18 |
################################################################## |
| 19 |
@@ -2018,6 +2016,8 @@ |
| 20 |
|
| 21 |
open (my $SRC, "<$SrcFile") || die "$CMD: Can't open file \`$SrcFile' for reading.\n"; |
| 22 |
if ($opt_H || $opt_T) { |
| 23 |
+ $tmp = `mktemp` || die; |
| 24 |
+ chomp $tmp; |
| 25 |
# DestFile will be written in the postprocess |
| 26 |
open (DEST, ">$tmp") || die "$CMD: Can't open file \`$tmp' for writing.\n"; |
| 27 |
} else { |