2012-01-03 16:16:12 +01:00
|
|
|
Index: contrib/named-bootconf/named-bootconf.sh
|
|
|
|
===================================================================
|
|
|
|
--- contrib/named-bootconf/named-bootconf.sh.orig
|
|
|
|
+++ contrib/named-bootconf/named-bootconf.sh
|
2007-01-19 15:23:41 +01:00
|
|
|
@@ -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
|
2012-01-03 16:16:12 +01:00
|
|
|
@@ -308,7 +309,7 @@ if [ $DUMP -eq 1 ]; then
|
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
|