From 397b56598e0bcb4766c007ba2b775e11f38f2c31 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Sun, 27 Sep 2009 15:06:55 -0700 Subject: Yet another change to accommodate various flavors of mktemp. --- contrib/mmdsr | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/contrib/mmdsr b/contrib/mmdsr index b4d8ea9e..8823f426 100644 --- a/contrib/mmdsr +++ b/contrib/mmdsr @@ -205,9 +205,10 @@ XARGS="/usr/bin/xargs" WC="/usr/bin/wc" ############################################################################### -# Directory for temporary files +# Arguments for your mktemp command to specify directory and/or create file. +# For example, HPUX mktemp requires "-c"; FreeBSD doesn't accept "-p ". ############################################################################### -TMPDIR="/tmp" +TMPDIR="-p /tmp" ############################################################################### # Mailman queue directory @@ -312,8 +313,8 @@ if [ "${SLEEPTIME}" != "" -a "${RCPTS}x" != "${SENDER}x" ] ; then fi fi -TMP=`$MKTEMP -p $TMPDIR` -TMPLOG=`$MKTEMP -p $TMPDIR` +TMP=`$MKTEMP $TMPDIR` +TMPLOG=`$MKTEMP $TMPDIR` if [ "${RCPTS}x" != "x" ] ; then echo "From: ${SENDER}" >> $TMP -- cgit v1.2.3