Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/texlive/2015/texlive-core: 050_all_latex2man_predictable_tmp.patch series
Date: Mon, 05 Dec 2016 14:20:09
Message-Id: 20161205142001.1B46424B0@oystercatcher.gentoo.org
1 aballier 16/12/05 14:20:01
2
3 Modified: series
4 Added: 050_all_latex2man_predictable_tmp.patch
5 Log:
6 add patch for bug #432144 to tl-core patchset
7
8 Revision Changes Path
9 1.2 src/patchsets/texlive/2015/texlive-core/series
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2015/texlive-core/series?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2015/texlive-core/series?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2015/texlive-core/series?r1=1.1&r2=1.2
14
15 Index: series
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/texlive/2015/texlive-core/series,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- series 15 Jul 2015 11:12:57 -0000 1.1
22 +++ series 5 Dec 2016 14:20:01 -0000 1.2
23 @@ -2,3 +2,4 @@
24 020_all_a2ping_invocation.patch
25 030_all_updmap_normalize.patch
26 040_all_remove_define_abs.patch
27 +050_all_latex2man_predictable_tmp.patch
28
29
30
31 1.1 src/patchsets/texlive/2015/texlive-core/050_all_latex2man_predictable_tmp.patch
32
33 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2015/texlive-core/050_all_latex2man_predictable_tmp.patch?rev=1.1&view=markup
34 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2015/texlive-core/050_all_latex2man_predictable_tmp.patch?rev=1.1&content-type=text/plain
35
36 Index: 050_all_latex2man_predictable_tmp.patch
37 ===================================================================
38 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=668779
39 https://bugs.gentoo.org/show_bug.cgi?id=432144
40 CVE-2012-2120 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2012-2120)
41
42 Index: texlive-20150521-source/texmf-dist/scripts/latex2man/latex2man
43 ===================================================================
44 --- texlive-20150521-source.orig/texmf-dist/scripts/latex2man/latex2man
45 +++ texlive-20150521-source/texmf-dist/scripts/latex2man/latex2man
46 @@ -29,8 +29,6 @@ sub date2str;
47 $VERSION = "1.24";
48 $DATE = date2str ('$Date: 2016/12/05 14:20:01 $' =~ m|(\d+/\d+/\d+)|);
49
50 -$tmp = "/tmp/$CMD.$$";
51 -
52 ##################################################################
53 # check option and arguments
54 ##################################################################
55 @@ -124,6 +122,8 @@ $SrcFile = $ARGV[0];
56 $DestFile = $ARGV[1];
57 open (SRC, "<$SrcFile") || die "$CMD: Can't open file \`$SrcFile' for reading.\n";
58 if ($opt_H || $opt_T) {
59 + $tmp = `mktemp` || die;
60 + chomp $tmp;
61 # DestFile will be written in the postprocess
62 open (DEST, ">$tmp") || die "$CMD: Can't open file \`$tmp' for writing.\n";
63 } else {