Эх сурвалжийг харах

[PATCH] extract-ikconfig: use mktemp(1)

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Alexey Dobriyan 19 жил өмнө
parent
commit
66f9f59a5b

+ 1 - 1
scripts/extract-ikconfig

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