diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2022-02-15 11:02:17 +0100 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2022-02-15 11:06:38 +0100 |
commit | fad4eb7443e31d577c4d3ea25b19ce2261eb35aa (patch) | |
tree | 3afd31c607a066a89a8ccc3ee39853f735467b6f /print/a2ps/files/patch-fixps.in | |
parent | net-mgmt/victoria-metrics: update VictoriaMetrics to version 1.73.0 (diff) |
print/a2ps: add more patches
Diffstat (limited to 'print/a2ps/files/patch-fixps.in')
-rw-r--r-- | print/a2ps/files/patch-fixps.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/print/a2ps/files/patch-fixps.in b/print/a2ps/files/patch-fixps.in new file mode 100644 index 000000000000..ac4018e56624 --- /dev/null +++ b/print/a2ps/files/patch-fixps.in @@ -0,0 +1,28 @@ +--- contrib/fixps.in.orig 2000-02-21 08:16:15 UTC ++++ contrib/fixps.in +@@ -38,7 +38,7 @@ output=- # Default is stdout + run_gs=0 + # What action to perform: fixps, cat, check, and gs + task=fixps +-tmpdir=/tmp/$program.$$ ++tmpdir=$(mktemp -d -t ${program}) || exit 1 + verbose=echo + + # The version/usage strings +@@ -191,7 +191,6 @@ else + trap "/bin/rm -rf $tmpdir" 0 1 2 3 13 15 + fi + +-mkdir $tmpdir + fixps_sed=$tmpdir/fixps.sed + + # If printing from stdin, save into a tmp file +@@ -390,7 +389,7 @@ if test $task != check; then + eval "$command" ;; + gs) + $verbose "$program: making a full rewrite of the file ($gs)." >&2 +- $gs -q -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c save pop -f "$file" ;; ++ $gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pswrite -sOutputFile=- -c save pop -f "$file" ;; + esac + ) + fi |