~ubuntu-branches/ubuntu/jaunty/texlive-bin/jaunty-updates

« back to all changes in this revision

Viewing changes to debian/patches/52_feynmf-perl-sec-fix.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2006-05-11 00:12:10 UTC
  • Revision ID: james.westby@ubuntu.com-20060511001210-2p3y1ncrjg8a0ge9
Tags: 2005-2
* first upload to unstable, sponsored by 
  Frank Küster <frank@debian.org>
* texdoc support
  - let tetex texdoc find documentation of texlive (Closes: #364776)
  - include tetex texdoc patches (following of symlinks, security
    fixes) (Closes: #356390)
* texlive-lang-polish conflicts with octave-forge as both provide
  /usr/bin/mex, this is preliminary, a better solution must be
  sought (Closes: #364059)
* change shell for the reportbug script to bash (Closes: #356391)
* fix installation of thumbpdf and pdfcrop (Closes: #352092)
* improve various descriptions (Closes: #354964)
* call the update-* programs in all postinst scripts, so that the
  config files do not contain left-overs (Closes: #355266)
* fix creation of formats which in turn depend on the latex format
  (Closes: #351707)
* remap the ibycus4.map TeX/MF input file from the fonts/map location
  to the fonts/source location (Closes: #354652)
* depend on the updated lmodern package, thus making the fonts
  available for X (Closes: #351727)
* lots of internal changes, important ones being:
  - texlive packages now do not include files which have been
    packaged for Debian already (eg cm-super, lmodern, musixtex)
  - most packages can be used together with teTeX
  - fix several upstream bugs
  - generate license information for each file from the
    TeX Catalogue (ongoing work)
  for detailed changes see CHANGES.packaging in texlive-common

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 52_feynmf-perl-sec-fix.dpatch by Kevin B. McCarty
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: secure tmp file handling
 
6
 
 
7
@DPATCH@
 
8
--- ./texmf-dist/source/latex/feynmf/feynmf.pl.orig
 
9
+++ ./texmf-dist/source/latex/feynmf/feynmf.pl
 
10
@@ -270,10 +270,11 @@
 
11
     my @tfm = @_;
 
12
     # Prepare a fake temporary PL file
 
13
     # (/dev/null won't do, because the font must not be empty):
 
14
-    my ($pl) = "/tmp/feynmf$$.pl";
 
15
+    my ($pl) = `/bin/tempfile -p feynmf -s .pl`;
 
16
     my ($tfm);
 
17
     $pltotf_prog
 
18
        or die "feynmf: fatal: pltopf programm required unless -notfm\n";
 
19
+    chop ($pl);
 
20
     open (PL, ">$pl") or die "feynmf: can't open temporary file $pl: $!\n";
 
21
     push @temporay_files, $pl;
 
22
     print PL <<__END_PL__;
 
23
@@ -373,7 +374,7 @@
 
24
                        maybe_run "$gftopk_prog $gf" if $gftopk_prog;
 
25
                    }
 
26
                }
 
27
-               close (<LOG>);
 
28
+               close (LOG);
 
29
            }
 
30
        }
 
31
     }