Marcus Meissner
b29a01b4d4
OBS-URL: https://build.opensuse.org/request/show/746635 OBS-URL: https://build.opensuse.org/package/show/network/bind?expand=0&rev=259
24 lines
725 B
Diff
24 lines
725 B
Diff
Index: bind-9.14.7/contrib/scripts/named-bootconf.sh
|
|
===================================================================
|
|
--- bind-9.14.7.orig/contrib/scripts/named-bootconf.sh
|
|
+++ bind-9.14.7/contrib/scripts/named-bootconf.sh
|
|
@@ -39,7 +39,8 @@
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
if [ ${OPTIONFILE-X} = X ]; then
|
|
- 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
|
|
@@ -293,7 +294,7 @@ if [ $DUMP -eq 1 ]; then
|
|
cat $ZONEFILE $COMMENTFILE
|
|
|
|
rm -f $OPTIONFILE $ZONEFILE $COMMENTFILE
|
|
- rmdir $WORKDIR
|
|
+ rm -rf $TMPDIR
|
|
fi
|
|
|
|
exit 0
|