git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c4c96
)
s3: smbd: SMB1 reply_ntrename() - set dest_has_wcard from the parsed last component.
author
Jeremy Allison
<jra@samba.org>
Tue, 29 Sep 2020 18:06:54 +0000
(11:06 -0700)
committer
Ralph Boehme
<slow@samba.org>
Wed, 30 Sep 2020 20:46:39 +0000
(20:46 +0000)
We eventually want to remove the last_component_has_wcard out of the srvstr_get_pathXXX()
calls and just use srvstr_get_path_req().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/nttrans.c
patch
|
blob
|
history
diff --git
a/source3/smbd/nttrans.c
b/source3/smbd/nttrans.c
index 7ab1c5d178d7384bddb044f2c05e35eb23c1ccbe..a178a6bad1f8cb56eedadc0dfaf373010adf0052 100644
(file)
--- a/
source3/smbd/nttrans.c
+++ b/
source3/smbd/nttrans.c
@@
-1796,6
+1796,10
@@
void reply_ntrename(struct smb_request *req)
goto out;
}
+ if (!req->posix_pathnames) {
+ dest_has_wcard = ms_has_wild(dst_original_lcomp);
+ }
+
status = filename_convert(ctx, conn,
newname,
ucf_flags_dst,