netpbm: fix tmpdir in netpbm-security-scripts.patch

This commit is contained in:
Leonid Pliushch 2020-12-07 22:09:34 +00:00
parent 7897bef6ff
commit d1d092c96a
No known key found for this signature in database
GPG Key ID: 45F2964132545795

View File

@ -46,7 +46,7 @@ index ba0e818..250fca0 100755
-tempdir="${TMPDIR-/tmp}/pamstretch-gen.$$"
-mkdir -m 0700 $tempdir || \
- { echo "Could not create temporary file. Exiting."; exit 1;}
+tempfile=$(mktemp /tmp/pnmig.XXXXXXXXXX) || exit 1
+tempfile=$(mktemp @TERMUX_PREFIX@/tmp/pnmig.XXXXXXXXXX) || exit 1
trap 'rm -rf $tempdir' 0 1 3 15
tempfile=$tempdir/pnmig