summaryrefslogtreecommitdiffstats
path: root/scripts/patchfns.in
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2005-02-06 00:35:23 +0000
committerAndreas Gruenbacher <agruen@suse.de>2005-02-06 00:35:23 +0000
commitc6e5788b1e0ee1de26779c37a489f24cbd4273e4 (patch)
tree7fe13b8a00e72c389ff674a34d56a4e99f9ea0c0 /scripts/patchfns.in
parent0728a96e16b7cf12786309402a3dbbb512555b1a (diff)
downloadquilt-c6e5788b1e0ee1de26779c37a489f24cbd4273e4.tar.gz
- Don't leak so many temporary files in the push command.
- Include command names in tempfile names to find leaks more easily.
Diffstat (limited to 'scripts/patchfns.in')
-rw-r--r--scripts/patchfns.in24
1 files changed, 3 insertions, 21 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index 4454499..8b58946 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -685,29 +685,11 @@ gen_tempfile()
local name
if [ "$1" = -d ]
then
- @MKTEMP@ -d ${2:-${TMPDIR:-/tmp}/quilt}.XXXXXX
+ @MKTEMP@ -d ${2:-${TMPDIR:-/tmp}/${0// /_}}.XXXXXX
else
- @MKTEMP@ ${1:-${TMPDIR:-/tmp}/quilt}.XXXXXX
+ @MKTEMP@ ${1:-${TMPDIR:-/tmp}/${0// /_}}.XXXXXX
fi
-# if [ "$1" = -d ]
-# then
-# name=$(@MKTEMP@ -d ${2:-${TMPDIR:-/tmp}/quilt}.XXXXXX)
-# add_exit_handler "rm -rf $name"
-# else
-# name=$(@MKTEMP@ ${1:-${TMPDIR:-/tmp}/quilt}.XXXXXX)
-# add_exit_handler "rm -f $name"
-# fi
-# echo "$name"
-}
-
-#keep_tempfile()
-#{
-# if [ "$1" = -d ]; then
-# remove_exit_handler "rm -rf $2"
-# else
-# remove_exit_handler "rm -f $1"
-# fi
-#}
+}
first_modified_by()
{