From 6db99a1a40c5930338b3854c88e016076a0d6620 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Thu, 16 Jul 2015 17:16:52 +0200 Subject: [PATCH] use mktemp properly ? -t option to put in /tmp dir --- miniupnpc/testminiwget.sh | 2 +- miniupnpd/genconfig.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/miniupnpc/testminiwget.sh b/miniupnpc/testminiwget.sh index bee0260..67f3c6d 100755 --- a/miniupnpc/testminiwget.sh +++ b/miniupnpc/testminiwget.sh @@ -15,7 +15,7 @@ # The script was tested and works with ksh, bash # it should now also run with dash -TMPD=`mktemp -d miniwgetXXXXXXXXXX` +TMPD=`mktemp -t -d miniwgetXXXXXXXXXX` HTTPSERVEROUT="${TMPD}/httpserverout" EXPECTEDFILE="${TMPD}/expectedfile" DOWNLOADEDFILE="${TMPD}/downloadedfile" diff --git a/miniupnpd/genconfig.sh b/miniupnpd/genconfig.sh index e609fd7..70c8911 100755 --- a/miniupnpd/genconfig.sh +++ b/miniupnpd/genconfig.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: genconfig.sh,v 1.78 2014/12/10 09:34:42 nanard Exp $ +# $Id: genconfig.sh,v 1.81 2015/07/16 15:00:21 nanard Exp $ # miniupnp daemon # http://miniupnp.free.fr or http://miniupnp.tuxfamily.org/ # (c) 2006-2015 Thomas Bernard @@ -36,7 +36,7 @@ done RM="rm -f" MV="mv" -CONFIGFILE="config.h.tmp" +CONFIGFILE=`mktemp tmp.config.h.XXXXXXXXXX` CONFIGFILE_FINAL="config.h" CONFIGMACRO="CONFIG_H_INCLUDED"