[PATCH] extract-ikconfig: use mktemp(1)
Alexey Dobriyan [Fri, 24 Mar 2006 11:15:55 +0000 (03:15 -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 d9f9f34..ef6140d 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