2006-12-19 00:15:14 +01:00
|
|
|
--- contrib/named-bootconf/named-bootconf.sh
|
2007-01-19 15:23:41 +01:00
|
|
|
+++ contrib/named-bootconf/named-bootconf.sh 2006/11/06 08:59:04
|
|
|
|
@@ -54,7 +54,8 @@
|
2006-12-19 00:15:14 +01:00
|
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
if [ ${OPTIONFILE-X} = X ]; then
|
2007-01-19 15:23:41 +01:00
|
|
|
- WORKDIR=/tmp/`date +%s`.$$
|
|
|
|
+ TMPDIR=`mktemp -p /tmp/ -d named-bootconf.XXXXXXXXXX` || exit 1
|
|
|
|
+ WORKDIR=$TMPDIR/`date +%s`.$$
|
|
|
|
( umask 077 ; mkdir $WORKDIR ) || {
|
|
|
|
echo "unable to create work directory '$WORKDIR'" >&2
|
|
|
|
exit 1
|
|
|
|
@@ -308,7 +309,7 @@
|
2006-12-19 00:15:14 +01:00
|
|
|
cat $ZONEFILE $COMMENTFILE
|
|
|
|
|
2007-01-19 15:23:41 +01:00
|
|
|
rm -f $OPTIONFILE $ZONEFILE $COMMENTFILE
|
|
|
|
- rmdir $WORKDIR
|
2006-12-19 00:15:14 +01:00
|
|
|
+ rm -rf $TMPDIR
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|