[PATCH] extract-ikconfig: use mktemp(1)
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 24 Mar 2006 11:15:55 +0000 (03:15 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 24 Mar 2006 15:33:21 +0000 (07:33 -0800)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
scripts/extract-ikconfig

index d9f9f34b22abb1eb8dd6995e06ffe25ac230a4a2..ef6140dc2ded67270c88fed0db4d07baf5fd8019 100755 (executable)
@@ -45,7 +45,7 @@ then
        exit 1
 fi
 
-TMPFILE="/tmp/ikconfig-$$"
+TMPFILE=`mktemp -t ikconfig-XXXXXX` || exit 1
 image="$1"
 
 # vmlinux: Attempt to dump the configuration from the file directly