From 1a10a5949d9f2148bdcd61a864104e5c305f8a59 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 11 Mar 2010 14:39:14 -0800 Subject: Improve symlink delete test. Make sure we don't delete the link target by mistake. Jeremy. --- source3/script/tests/test_smbclient_s3.sh | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'source3') diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh index 7896b2821f..dc9853d690 100755 --- a/source3/script/tests/test_smbclient_s3.sh +++ b/source3/script/tests/test_smbclient_s3.sh @@ -132,11 +132,13 @@ EOF test_good_symlink() { tmpfile=/tmp/smbclient.in.$$ + slink_name="$LOCAL_PATH/slink" + slink_target="$LOCAL_PATH/slink_target" - touch "$LOCAL_PATH/foo" - ln -s "$LOCAL_PATH/foo" "$LOCAL_PATH/bar" + touch $slink_target + ln -s $slink_target $slink_name cat > $tmpfile <