1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3: smbd: Add src_dirfsp and dst_dirfsp parameters to rename_internals().

Not yet used (but passed to SMB_VFS_CREATE_FILE()).

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Jeremy Allison 2022-07-28 11:08:17 -07:00
parent beb10e8bbe
commit d9f144acb6
5 changed files with 11 additions and 1 deletions

View File

@ -990,7 +990,9 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
NTSTATUS rename_internals(TALLOC_CTX *ctx,
connection_struct *conn,
struct smb_request *req,
struct files_struct *src_dirfsp,
struct smb_filename *smb_fname_src,
struct files_struct *dst_dirfsp,
struct smb_filename *smb_fname_dst,
const char *dst_original_lcomp,
uint32_t attrs,

View File

@ -1537,7 +1537,9 @@ void reply_ntrename(struct smb_request *req)
status = rename_internals(ctx,
conn,
req,
NULL, /* src_dirfsp */
smb_fname_old,
NULL, /* dst_dirfsp */
smb_fname_new,
dst_original_lcomp,
attrs,

View File

@ -6085,7 +6085,9 @@ void reply_mv(struct smb_request *req)
status = rename_internals(ctx,
conn,
req,
NULL, /* src_dirfsp */
smb_fname_src,
NULL, /* dst_dirfsp */
smb_fname_dst,
dst_original_lcomp,
attrs,

View File

@ -1718,7 +1718,9 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
NTSTATUS rename_internals(TALLOC_CTX *ctx,
connection_struct *conn,
struct smb_request *req,
struct files_struct *src_dirfsp,
struct smb_filename *smb_fname_src,
struct files_struct *dst_dirfsp,
struct smb_filename *smb_fname_dst,
const char *dst_original_lcomp,
uint32_t attrs,
@ -1780,7 +1782,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
status = SMB_VFS_CREATE_FILE(
conn, /* conn */
req, /* req */
NULL, /* dirfsp */
src_dirfsp, /* dirfsp */
smb_fname_src, /* fname */
access_mask, /* access_mask */
(FILE_SHARE_READ | /* share_access */

View File

@ -5296,7 +5296,9 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn,
status = rename_internals(ctx,
conn,
req,
NULL, /* src_dirfsp */
smb_fname_src,
NULL, /* dst_dirfsp */
smb_fname_dst,
dst_original_lcomp,
0,