tests: Get a file through an absolute symlink within a subdirectory
authorVolker Lendecke <vl@samba.org>
Thu, 26 Oct 2023 14:16:29 +0000 (16:16 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 27 Oct 2023 20:14:30 +0000 (20:14 +0000)
commitcc1657c5857f22d41830898ef2eb384d5fc52a42
tree4da3e9f52cc4138257a6bcc7c974fbe3e6f419c7
parent03af117693852262b3f5ead4aaa62314d6f3ca45
tests: Get a file through an absolute symlink within a subdirectory

This shows that read_symlink_reparse() is broken when trying to
replace an absolute with a relative filename within a
share.

read_symlink_reparse() is used only in openat_pathref_fsp_nosymlink()
so far to chase symlinks for non-lcomp path components. Chasing lcomp
symlinks is done through non_widelink_open(), which gets it right.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15505

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
selftest/knownfail.d/bug-15505 [new file with mode: 0644]
source3/script/tests/test_smbclient_s3.sh