s3:smbd: use passed in ev in smbd_smb2_query_directory_send()
[garming/samba-autobuild/.git] / selftest / gdb_backtrace
index 28ac064bcd400fbfc09b40697f34de422926e0b5..ef02e784efc926277ab88664f588b3a2a587f97a 100755 (executable)
@@ -90,8 +90,16 @@ test x"${need_binary}" = x"yes" && {
        }
 }
 
-BATCHFILE_PRE=/tmp/gdb_backtrace_pre.$$
-BATCHFILE_MAIN=/tmp/gdb_backtrace_main.$$
+BATCHFILE_PRE=`mktemp --tmpdir gdb_backtrace_pre.XXXXXXXXXX`
+test -n "${BATCHFILE_PRE}" || {
+       echo "mktemp doesn't work" 1>&2
+       exit 1
+}
+BATCHFILE_MAIN=`mktemp --tmpdir gdb_backtrace_main.XXXXXXXXXX`
+test -n "${BATCHFILE_MAIN}" || {
+       echo "mktemp doesn't work" 1>&2
+       exit 1
+}
 case "${DB}" in
        ladebug)
 cat << EOF  > ${BATCHFILE_PRE}