diff options
author | is <is@pkgsrc.org> | 2009-10-03 11:43:49 +0000 |
---|---|---|
committer | is <is@pkgsrc.org> | 2009-10-03 11:43:49 +0000 |
commit | 74de91d1cbfde4e829a30b041342511ab743fd1a (patch) | |
tree | beed556317650d2f576fef53f3b28fbba74b760a /comms/mgetty+sendfax/patches | |
parent | 7815ed9edde67acc340bb02c6e93d0b32c5dbda3 (diff) | |
download | pkgsrc-74de91d1cbfde4e829a30b041342511ab743fd1a.tar.gz |
Actually, the security patch was missing from my last commit. PKGREVISION
increased to distinguish.
Diffstat (limited to 'comms/mgetty+sendfax/patches')
-rw-r--r-- | comms/mgetty+sendfax/patches/patch-aa | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/comms/mgetty+sendfax/patches/patch-aa b/comms/mgetty+sendfax/patches/patch-aa index da1e437ff79..486fc9f36a9 100644 --- a/comms/mgetty+sendfax/patches/patch-aa +++ b/comms/mgetty+sendfax/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.4 2009/10/02 19:21:59 is Exp $ +$NetBSD: patch-aa,v 1.5 2009/10/03 11:43:49 is Exp $ --- fax/faxspool.in.orig 2007-01-19 08:38:22.000000000 +0100 +++ fax/faxspool.in @@ -17,3 +17,35 @@ $NetBSD: patch-aa,v 1.4 2009/10/02 19:21:59 is Exp $ fi test -z "$user" && user=$LOGNAME test -z "$user" && user=$USER +@@ -653,12 +653,14 @@ fi + # + # mkdir a directory in $TMP (or /tmp), convert input to G3 in there + # +-spooldir=${TMP:-/tmp}/$new_seq.$$.`date +%S` ++spooldirprefix=$new_seq.$$.`date +%S` ++spooldir=`mktemp -d -t $spooldirprefix` + +-if ( umask 077 ; mkdir $spooldir ) ; then +- $echo "spooling to $spooldir (->$new_seq)..." +-else ++if [ $? -ne 0 ] ++then + $echo "ERROR: can't create work dir '$spooldir', giving up" >&2 ; exit 6 ++else ++ $echo "spooling to $spooldir (->$new_seq)..." + fi + + # +@@ -675,9 +677,9 @@ do + if [ x$file = x- ] + then + $echo "spooling $file (stdin)..." +- trap "rm /tmp/faxsp.$$" 0 +- cat - >/tmp/faxsp.$$ +- file=/tmp/faxsp.$$ ++ file=`mktemp -t faxsp.$$` ++ trap "rm $file" 0 ++ cat - > $file + else + $echo "spooling $file..." + fi |