From: Jeremy Allison Date: Tue, 8 Jun 2021 19:28:24 +0000 (-0700) Subject: s3: smbd: open_directory(). Pass down the real parent_dir->fsp to smbd_check_access_r... X-Git-Tag: tevent-0.11.0~519 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ef5ed23097b598451d9453509ac36bb18c38507;p=thirdparty%2Fsamba.git s3: smbd: open_directory(). Pass down the real parent_dir->fsp to smbd_check_access_rights_fsp(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 21dda0f5960..101757666fe 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -4622,7 +4622,7 @@ static NTSTATUS open_directory(connection_struct *conn, } if (info == FILE_WAS_OPENED) { - status = smbd_check_access_rights_fsp(fsp->conn->cwd_fsp, + status = smbd_check_access_rights_fsp(parent_dir_fname->fsp, fsp, false, access_mask);