From 266f09477b76a501e2ec57d7c09beb289cbd3da2 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Thu, 30 Jul 2020 00:41:19 -0500 Subject: core-functions.sh: Replace tempfile with mktemp Thanks to I.G.O.R. on LQ for the suggestion and reminder. --- files/core-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files') diff --git a/files/core-functions.sh b/files/core-functions.sh index 0db3ffe..aa12743 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -741,7 +741,7 @@ function makelist() { # -- temporary file used to store the basename of selected # packages. - PKGNAMELIST=$(tempfile --directory=$TMPDIR) + PKGNAMELIST=$(mktemp -p ${TMPDIR} -t slackpkg.XXXXXXXXXXXX) if [ "$CMD" = "file-search" ]; then # Search filelist.gz for possible matches -- cgit v1.2.3