]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:tests: Transfer test files into temporary directory
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 25 Aug 2022 02:03:17 +0000 (14:03 +1200)
committerJeremy Allison <jra@samba.org>
Thu, 25 Aug 2022 17:56:31 +0000 (17:56 +0000)
The presence of these two files is causing 'check-clean-tree' to fail.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Aug 25 17:56:31 UTC 2022 on sn-devel-184

source3/script/tests/test_symlink_traversal_smb2.sh

index a67341d1f9a532621d7ea5ebbedf5ca01f5cf4e7..efd4353c533c6d50de2efc831bdfdec0828a050d 100755 (executable)
@@ -321,10 +321,10 @@ test_symlink_traversal_SMB2()
        smbclient_expect_error "get" "symlink_to_dot" "" "NT_STATUS_FILE_IS_A_DIRECTORY" || return 1
        smbclient_expect_error "get" "symlink_to_dot/noexist1" "" "NT_STATUS_OBJECT_NAME_NOT_FOUND" || return 1
        smbclient_expect_error "get" "symlink_to_dot/noexist1/noexist2" "" "NT_STATUS_OBJECT_PATH_NOT_FOUND" || return 1
-       smbclient_expect_error "get" "file_exists" "" "NT_STATUS_OK" || return 1
+       smbclient_expect_error "get" "file_exists" "$dir_outside_share/file_exists" "NT_STATUS_OK" || return 1
        smbclient_expect_error "get" "file_exists/noexist1" "" "NT_STATUS_OBJECT_PATH_NOT_FOUND" || return 1
        smbclient_expect_error "get" "file_exists/noexist1/noexist2" "" "NT_STATUS_OBJECT_PATH_NOT_FOUND" || return 1
-       smbclient_expect_error "get" "symlink_to_file_exists" "" "NT_STATUS_OK" || return 1
+       smbclient_expect_error "get" "symlink_to_file_exists" "$dir_outside_share/symlink_to_file_exists" "NT_STATUS_OK" || return 1
        smbclient_expect_error "get" "symlink_to_file_exists/noexist1" "" "NT_STATUS_OBJECT_PATH_NOT_FOUND" || return 1
        smbclient_expect_error "get" "symlink_to_file_exists/noexist1/noexist2" "" "NT_STATUS_OBJECT_PATH_NOT_FOUND" || return 1
        smbclient_expect_error "get" "dir_exists" "" "NT_STATUS_FILE_IS_A_DIRECTORY" || return 1