s3-selftest Remove more instances of /tmp in test_smbclient_s3.sh
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Apr 2011 09:18:47 +0000 (19:18 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Apr 2011 09:48:58 +0000 (19:48 +1000)
source3/script/tests/test_smbclient_s3.sh

index 30b26a4d8cd0df714d6b70c2b252cd8c4de7b9c9..972f68f42bce7b16c2843742f9635e505e62d029 100755 (executable)
@@ -131,7 +131,7 @@ EOF
 # Test creating a good symlink and deleting it by path.
 test_good_symlink()
 {
-    tmpfile=/tmp/smbclient.in.$$
+    tmpfile=$PREFIX/smbclient.in.$$
     slink_name="$LOCAL_PATH/slink"
     slink_target="$LOCAL_PATH/slink_target"
 
@@ -181,7 +181,7 @@ EOF
 test_read_only_dir()
 {
     prompt="NT_STATUS_ACCESS_DENIED making remote directory"
-    tmpfile=/tmp/smbclient.in.$$
+    tmpfile=$PREFIX/smbclient.in.$$
 
 ##
 ## We can't do this as non-root. We always have rights to
@@ -238,7 +238,7 @@ EOF
 test_owner_only_file()
 {
     prompt="NT_STATUS_ACCESS_DENIED opening remote file"
-    tmpfile=/tmp/smbclient.in.$$
+    tmpfile=$PREFIX/smbclient.in.$$
 
 ##
 ## We can't do this as non-root. We always have rights to
@@ -294,7 +294,7 @@ EOF
 # Test accessing an msdfs path.
 test_msdfs_link()
 {
-    tmpfile=/tmp/smbclient.in.$$
+    tmpfile=$PREFIX/smbclient.in.$$
     prompt="  msdfs-target  "
 
     cat > $tmpfile <<EOF