From 72d1198553a2ad4d4b1c3049a6ce8e28ab104ce3 Mon Sep 17 00:00:00 2001 From: xkill Date: Thu, 12 May 2022 10:49:54 +0200 Subject: [PATCH] Update vsftpd-rel: use mktemp Use mktemp instead tempfile, as tempfile is deprecated. --- plugins/ftp/vsftpd-rel | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ftp/vsftpd-rel b/plugins/ftp/vsftpd-rel index 27b4dc96..00a60c76 100755 --- a/plugins/ftp/vsftpd-rel +++ b/plugins/ftp/vsftpd-rel @@ -36,7 +36,7 @@ PIVOT=${MUNIN_PLUGSTATE}/${PROGNAME}.pivot install_ok() { - tempfile=$(which tempfile) + tempfile=$(which mktemp) if [ ! -r ${LOGFILE} -o \ -z "${LOGTAIL}" -o ! -x "${LOGTAIL}" -o \ -z "${tempfile}" -o ! -x "${tempfile}" ] @@ -49,7 +49,7 @@ install_ok() if [ "$1" = "autoconf" ] then - tmpfile=`which tempfile` + tmpfile=`which mktemp` if install_ok then echo yes @@ -81,7 +81,7 @@ fi test install_ok || exit 1 touch -d now-5minutes+30seconds $PIVOT -TEMP=`tempfile` +TEMP=`mktemp` trap "rm -f ${PIVOT} ${TEMP}" INT EXIT test -n "$TEMP" -a -w "$TEMP" || exit 1