patch-wvMime 500 B

1234567891011121314151617
  1. $OpenBSD: patch-wvMime,v 1.3 2008/05/12 16:14:42 fgsch Exp $
  2. --- wvMime.orig Thu May 8 13:57:31 2008
  3. +++ wvMime Thu May 8 13:57:44 2008
  4. @@ -43,10 +43,8 @@ fi
  5. # temporary PS file, mangled to get some sort
  6. # of semi-uniqueness
  7. FILE=`basename ${1}`
  8. -TMPDIR="/tmp/${FILE}-${USER}-${$}"
  9. -TMPPS="$TMPDIR/${FILE}-${USER}-${$}.ps"
  10. -
  11. -mkdir $TMPDIR
  12. +TMPDIR=`mktemp -d /tmp/wvMime.XXXXXXXXXX`
  13. +TMPPS=`mktemp /tmp/wvMime.XXXXXXXXXX`
  14. # Make sure all graphics go into /tmp as well
  15. cp ${1} $TMPDIR/$FILE