Package: src:dnprogs
Version: 2.65
Severity: normal
Tags: patch

tempfile has been deprecated for years and mktemp is guaranteed
to exist on a Debian system.

diff --git a/scripts/setup.sh b/scripts/setup.sh
index a0a162f..b4be03e 100644
--- a/scripts/setup.sh
+++ b/scripts/setup.sh
@@ -3,13 +3,7 @@
 # Configure /etc/decnet.conf
 #
 
-# Use a temp file
-if [ -x /bin/tempfile ]
-then
-  CONFFILE="`tempfile`"
-else
-  CONFFILE="/tmp/decnet.conf$$"
-fi
+CONFFILE="$(mktemp)"
 REALFILE=/etc/decnet.conf
 
 if [ -f "$REALFILE" ]

Reply via email to