about summary refs log tree commit diff
path: root/glibcbug.in
diff options
context:
space:
mode:
Diffstat (limited to 'glibcbug.in')
-rw-r--r--glibcbug.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/glibcbug.in b/glibcbug.in
index b55995d164..c915f34f04 100644
--- a/glibcbug.in
+++ b/glibcbug.in
@@ -24,15 +24,17 @@ STDIO="@stdio@"
 PATH=/bin:/usr/bin:/usr/local/bin:$PATH
 export PATH
 
-TEMP=`mktemp -q /tmp/glibcbugXXXXXX`
+TEMP=`mktemp -q /tmp/glibcbugXXXXXX 2>/dev/null`
 if test $? -ne 0; then
   TEMP=/tmp/glibcbug.$$
   echo > $TEMP
+  chmod 600 $TEMP
 fi
-TEMPx=`mktemp -q /tmp/glibcbugXXXXXX`
+TEMPx=`mktemp -q /tmp/glibcbugXXXXXX 2>/dev/null`
 if test $? -ne 0; then
   TEMPx=/tmp/glibcbug.$$.x
   echo > $TEMPx
+  chmod 600 $TEMPx
 fi
 
 BUGADDR=${1-$BUGGLIBC}