From b5c8cdb121bec3528f891e25c51b14b81d0e255d Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 6 Oct 2010 17:50:50 +0000 Subject: [PATCH] Bug fix: made sure that nested invocations of process_patch() do not overwrite each others output. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2356 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scripts/generate-kernel-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-kernel-patch b/scripts/generate-kernel-patch index 36c645e7f..357d83c0a 100755 --- a/scripts/generate-kernel-patch +++ b/scripts/generate-kernel-patch @@ -130,7 +130,7 @@ function process_patch { if [ -e "${patchdir}/$1" ]; then echo "Warning: overwriting ${patchdir}/$1" fi - tmppatch="/tmp/scst-tmp-patch-$$" + tmppatch="$(/bin/mktemp)" ( specialize_patch ) >"${tmppatch}"