summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2013-01-21 18:34:19 +0100
committerJuergen Daubert <jue@jue.li>2013-01-21 18:34:19 +0100
commit3c2d39e9c63a066a556ee021c7e3b52cf49425ac (patch)
treec449b11a1e2e6d38239eba100dac631bb1e27acd
parent695999d5197b50ef3172125b496cb7f903f0f4a5 (diff)
downloadprt-utils-3c2d39e9c63a066a556ee021c7e3b52cf49425ac.tar.gz
prt-utils-3c2d39e9c63a066a556ee021c7e3b52cf49425ac.tar.xz
pkgexport: use mktemp to create temporary file
-rwxr-xr-xpkgexport2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgexport b/pkgexport
index b7aefa6..55ff88e 100755
--- a/pkgexport
+++ b/pkgexport
@@ -59,7 +59,7 @@ clean_on_exit() {
##########
pkginfo_l() {
-FILES="/tmp/.pkgexport.$$"
+FILES="$(mktemp --tmpdir ${COMMAND}.XXXXXXXXXX)"
pkginfo $ROOT -l $1 > $FILES
if [ $RET -ne 0 ]
then

Generated by cgit