summaryrefslogtreecommitdiff
path: root/trunk/src
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/src')
-rw-r--r--trunk/src/qpkg/qpkg6
1 files changed, 5 insertions, 1 deletions
diff --git a/trunk/src/qpkg/qpkg b/trunk/src/qpkg/qpkg
index 0c06094..dd8344b 100644
--- a/trunk/src/qpkg/qpkg
+++ b/trunk/src/qpkg/qpkg
@@ -13,7 +13,9 @@
ID='$Id$'
VERSION=0.`echo ${ID} | cut -d\ -f3`
-TMP="/tmp/qpkg-${$}/"
+umask 0077
+
+TMP="$(mktemp -d -t qpkg-XXXXXX)"
rm -rf ${TMP}
mkdir -p ${TMP}
@@ -228,6 +230,7 @@ ${YL}Examples${NO}:
the older ones will have \"damaged\" files.
${PROG} -f /bin/ls print package(s) that own /bin/ls
"
+ rm -rf ${TMP}
exit
fi
@@ -292,6 +295,7 @@ fi
-e "s:-[0-9].*$::" \
-e "s:\(^[^/]*/\)\(.*\):${BR}\1${CY}\2${NO}:"|uniq
fi
+ rm -rf ${TMP}
exit
fi