From 717a27ba2227764ba14c205eca276ed67e752a59 Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Thu, 24 Nov 2011 14:42:21 +0100 Subject: s3:smb2 report access_based_dir_enum in tcon reply let the client know when hide unreadable or hide unwriteable files is set for a share --- source3/smbd/smb2_tcon.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c index b0db5e66b7..4c0544fba2 100644 --- a/source3/smbd/smb2_tcon.c +++ b/source3/smbd/smb2_tcon.c @@ -273,6 +273,11 @@ static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req, break; } + if (lp_hideunreadable(SNUM(tcon->compat_conn)) || + lp_hideunwriteable_files(SNUM(tcon->compat_conn))) { + *out_share_flags |= SMB2_SHAREFLAG_ACCESS_BASED_DIRECTORY_ENUM; + } + *out_maximal_access = tcon->compat_conn->share_access; *out_tree_id = tcon->tid; -- cgit