mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
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)
This commit is contained in:
parent
73ca4b6c8b
commit
063bd6e278
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user