summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackware.com>2020-07-30 00:41:19 -0500
committerRobby Workman <rworkman@slackware.com>2020-07-30 00:41:19 -0500
commit266f09477b76a501e2ec57d7c09beb289cbd3da2 (patch)
treeba617adc4315bd8b19a8c2ace1a1cf125fa552cf
parentf63b738fb057152de6c6bf68a247ca35db5f54d0 (diff)
downloadslackpkg-266f09477b76a501e2ec57d7c09beb289cbd3da2.tar.xz
core-functions.sh: Replace tempfile with mktemp
Thanks to I.G.O.R. on LQ for the suggestion and reminder.
-rw-r--r--files/core-functions.sh2
1 files changed, 1 insertions, 1 deletions
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