summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2009-07-30 10:47:36 +1000
committerMartin Schwenke <martin@meltin.net>2009-07-30 10:47:36 +1000
commit063bd6e2787c2791e6ae993278699e3076b0824f (patch)
treef74f72bb6700b60d6be4f4ad75b9ad0df5ee1b4e /ctdb
parent73ca4b6c8b87c9fc82f0da824fe879c37c700371 (diff)
downloadsamba-063bd6e2787c2791e6ae993278699e3076b0824f.tar.gz
samba-063bd6e2787c2791e6ae993278699e3076b0824f.tar.xz
samba-063bd6e2787c2791e6ae993278699e3076b0824f.zip
Test suite: fix test file permissions in complex/44_failover_nfs_oneway.sh.
Something, perhaps root_squash, causing permission denied on the test file after we copy it over with scp. This sets the initial permissions to be friendly and adds -p to the scp command to maintain those friendly permissions. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 52f21f5a92eb14df7540a2ae9e212d936e646c06)
Diffstat (limited to 'ctdb')
-rwxr-xr-xctdb/tests/complex/44_failover_nfs_oneway.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/tests/complex/44_failover_nfs_oneway.sh b/ctdb/tests/complex/44_failover_nfs_oneway.sh
index 77503d44abd..258670bba37 100755
--- a/ctdb/tests/complex/44_failover_nfs_oneway.sh
+++ b/ctdb/tests/complex/44_failover_nfs_oneway.sh
@@ -66,10 +66,11 @@ ctdb_test_exit_hook_add rmdir "$mnt_d"
echo "Create file containing random data..."
dd if=/dev/urandom of=$local_f bs=1k count=1
+chmod 644 "$local_f" # needed for *_squash?
local_sum=$(sum $local_f)
[ $? -eq 0 ]
-scp "$local_f" "$remote_f"
+scp -p "$local_f" "$remote_f"
echo "Mounting ${test_ip}:${first_export} on ${mnt_d} ..."
mount -o timeo=1,hard,intr,vers=3 ${test_ip}:${first_export} ${mnt_d}