git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
selftest/gdb_*: make use of 'mktemp'
[nivanova/samba-autobuild/.git]
/
selftest
/
gdb_run
diff --git
a/selftest/gdb_run
b/selftest/gdb_run
index 8ad101ed60a68b47d3b1c67763092eabfd24570a..42d91b8559b780dcf3125884960f67e22d6e3d45 100755
(executable)
--- a/
selftest/gdb_run
+++ b/
selftest/gdb_run
@@
-4,11
+4,12
@@
ENV="$1"
shift 1
-if test -z "$TMPDIR"; then
- TMPDIR="/tmp"
-fi
+TMPFILE=`mktemp --tmpdir gdb_run.XXXXXXXXXX`
+test -n "${TMPFILE}" || {
+ echo "mktemp doesn't work" 1>&2
+ exit 1
+}
-TMPFILE=$TMPDIR/gdb_run.$$
cat << EOF > $TMPFILE
run
bt