From: Ralph Boehme Date: Mon, 18 May 2020 15:07:53 +0000 (+0200) Subject: smbd: use dirfsp in open_directory() X-Git-Tag: ldb-2.2.0~425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67373681c5907a6dccbc63deedf458d1c6e448e3;p=thirdparty%2Fsamba.git smbd: use dirfsp in open_directory() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 7c0854ac124..5ab5ab9551a 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -4297,7 +4297,7 @@ static NTSTATUS open_directory(connection_struct *conn, file_attributes); status = smbd_calculate_access_mask(conn, - conn->cwd_fsp, + *dirfsp, smb_dname, false, access_mask, @@ -4426,7 +4426,7 @@ static NTSTATUS open_directory(connection_struct *conn, if (info == FILE_WAS_OPENED) { status = smbd_check_access_rights(conn, - conn->cwd_fsp, + *dirfsp, smb_dname, false, access_mask);