tags 961690 patch thanks ----------- 8< ----------
From: Aaron Schrab <aa...@schrab.com> Date: Wed, 27 May 2020 19:30:14 -0400 Subject: [PATCH] Use mktemp(1) instead of tempfile(1) in lessfile As of version 4.10 of the debianutils package, tempfile(1) issues a run-time deprecation warning. Switch to mktemp(1) to avoid this. --- debian/lesspipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/lesspipe b/debian/lesspipe index a74459f..f36ee3b 100644 --- a/debian/lesspipe +++ b/debian/lesspipe @@ -48,7 +48,7 @@ if [ $# -eq 1 ] ; then # generate filename for possible use by lesspipe umask 077 if [ $BASENAME = $LESSFILE ]; then - TMPFILE=`tempfile -d $TMPDIR -p lessf` + TMPFILE=$(mktemp "${TMPDIR}/lessfXXXXXX") if [ -z "$TMPFILE" ]; then echo >&2 "Could not find essential program 'tempfile'. Exiting" exit 1 -- 2.27.0.rc2