build: Set TMPDIR for local testing.
[libguestfs.git] / run
diff --git a/run b/run
index 7e18edc..2945315 100755 (executable)
--- a/run
+++ b/run
 run=$(readlink -f "$0")
 b=$(dirname "$run")
 
 run=$(readlink -f "$0")
 b=$(dirname "$run")
 
+# Set TMPDIR so the appliance doesn't conflict with globally
+# installed libguestfs.
+export TMPDIR=$b
+
 # Set local environment relative to this script.
 export LD_LIBRARY_PATH="$b/src/.libs"
 export LIBGUESTFS_PATH="$b/appliance"
 # Set local environment relative to this script.
 export LD_LIBRARY_PATH="$b/src/.libs"
 export LIBGUESTFS_PATH="$b/appliance"