summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2011-10-21 18:35:15 -0700
committerKarolin Seeger <kseeger@samba.org>2011-10-26 19:28:06 +0200
commit074b9462e4b7b2b6e474566016e93a87c77e1599 (patch)
treeefa59ae12aeb2243a130cfd21e9b71976fa0d57f
parent6529ac5424f75943b612daddaefb765b44aecdf7 (diff)
downloadsamba-074b9462e4b7b2b6e474566016e93a87c77e1599.tar.gz
samba-074b9462e4b7b2b6e474566016e93a87c77e1599.tar.xz
samba-074b9462e4b7b2b6e474566016e93a87c77e1599.zip
Third part of fix for bug #8541 - readlink() on Linux clients fails if the symlink target is outside of the share.
Missed passing ucf_flags instead of hard coded flags in findfirst call. (cherry picked from commit 49d2a796bed0273327d8919755023c4dbd6d8232)
-rw-r--r--source3/smbd/trans2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 284635d85c8..129ab013e08 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -2333,8 +2333,7 @@ close_if_end = %d requires_resume_key = %d level = 0x%x, max_data_bytes = %d\n",
ntstatus = filename_convert(ctx, conn,
req->flags2 & FLAGS2_DFS_PATHNAMES,
directory,
- (UCF_SAVE_LCOMP |
- UCF_ALWAYS_ALLOW_WCARD_LCOMP),
+ ucf_flags,
&mask_contains_wcard,
&smb_dname);
if (!NT_STATUS_IS_OK(ntstatus)) {