From: Ralph Boehme Date: Tue, 3 Sep 2024 18:24:22 +0000 (+0200) Subject: smbd: pass lease and oplock_request to open_directory() X-Git-Tag: tdb-1.4.13~712 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8368236aff11ebe834ea202ac0c8a8a048ba4c1a;p=thirdparty%2Fsamba.git smbd: pass lease and oplock_request to open_directory() Signed-off-by: Ralph Boehme Reviewed-by: Stefan Metzmacher --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 523820fbae3..ddce4fa58b5 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -5148,6 +5148,8 @@ static NTSTATUS open_directory(connection_struct *conn, uint32_t file_attributes, struct smb_filename *parent_dir_fname, struct smb_filename *smb_fname_atname, + uint32_t oplock_request, + const struct smb2_lease *lease, struct security_descriptor *sd, int *pinfo, struct files_struct *fsp) @@ -6775,7 +6777,6 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, * CreateDirectory() call. */ - oplock_request = 0; status = open_directory(conn, req, access_mask, @@ -6785,6 +6786,8 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, file_attributes, dirfsp->fsp_name, smb_fname_atname, + oplock_request, + lease, sd, &info, fsp); @@ -6832,7 +6835,6 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, goto fail; } - oplock_request = 0; status = open_directory(conn, req, access_mask, @@ -6842,6 +6844,8 @@ static NTSTATUS create_file_unixpath(connection_struct *conn, file_attributes, dirfsp->fsp_name, smb_fname_atname, + oplock_request, + lease, sd, &info, fsp);