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