mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3: smbd: Add a 'const char *src_orginal_lcomp' (last component) parameter to rename_internals().
Not yet used. Passing as NULL means explicitly no wildcards in the source name. There's only one place where we have to handle wildcards here and that is from SMB1 reply_mv(). Could have used a bool here as in unlink_internals() but using a string here makes the parameters more symmetrical around src and destination values. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
90bce2c092
commit
f75e633fde
@ -1831,6 +1831,7 @@ void reply_ntrename(struct smb_request *req)
|
||||
conn,
|
||||
req,
|
||||
smb_fname_old,
|
||||
NULL,
|
||||
smb_fname_new,
|
||||
dst_original_lcomp,
|
||||
attrs,
|
||||
|
@ -1023,6 +1023,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
|
||||
connection_struct *conn,
|
||||
struct smb_request *req,
|
||||
struct smb_filename *smb_fname_src,
|
||||
const char *src_original_lcomp,
|
||||
struct smb_filename *smb_fname_dst,
|
||||
const char *dst_original_lcomp,
|
||||
uint32_t attrs,
|
||||
|
@ -7861,6 +7861,7 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx,
|
||||
connection_struct *conn,
|
||||
struct smb_request *req,
|
||||
struct smb_filename *smb_fname_src,
|
||||
const char *src_original_lcomp,
|
||||
struct smb_filename *smb_fname_dst,
|
||||
const char *dst_original_lcomp,
|
||||
uint32_t attrs,
|
||||
@ -8374,6 +8375,7 @@ void reply_mv(struct smb_request *req)
|
||||
conn,
|
||||
req,
|
||||
smb_fname_src,
|
||||
NULL,
|
||||
smb_fname_dst,
|
||||
dst_original_lcomp,
|
||||
attrs,
|
||||
|
@ -7480,6 +7480,7 @@ static NTSTATUS smb_file_rename_information(connection_struct *conn,
|
||||
conn,
|
||||
req,
|
||||
smb_fname_src,
|
||||
NULL,
|
||||
smb_fname_dst,
|
||||
dst_original_lcomp,
|
||||
0,
|
||||
|
Loading…
Reference in New Issue
Block a user