Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't pass --tmpdir to mktemp or expect it to have a default template.

BSD mktemp does not understand --tmpdir, and does not have a default
pattern if none is supplied.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Acked-by: Gabriel Filion <lelutin@gmail.com>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
  • Loading branch information...
commit a4d3a67fc4967447c4b137d3cba9396ea0557725 1 parent 7a1c342
@yungchin yungchin authored rlbdv committed
Showing with 2 additions and 2 deletions.
  1. +1 −1  t/compare-trees
  2. +1 −1  t/test.sh
View
2  t/compare-trees
@@ -42,7 +42,7 @@ fi
src="$1"
dest="$2"
-tmpfile="$(mktemp)"
+tmpfile="$(mktemp /tmp/bup-test-XXXXXXX)"
trap "rm -rf '${tmpfile}'" EXIT
rsync_opts="-niaH$verify_content --delete"
View
2  t/test.sh
@@ -500,7 +500,7 @@ WVSTART "save disjoint top-level directories"
rm -rf $D
mkdir -p $D/x
date > $D/x/1
- tmpdir="$(mktemp --tmpdir=/tmp -d bup-test-XXXXXXX)"
+ tmpdir="$(mktemp -d /tmp/bup-test-XXXXXXX)"
cleanup() { set -x; rm -rf "${tmpdir}"; set +x; }
trap cleanup EXIT
date > "$tmpdir/2"
Please sign in to comment.
Something went wrong with that request. Please try again.