git.samba.org
/
janger
/
samba-autobuild-v4-19-test
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4fbaae
)
smbd: use smb1_strip_dfs_path() in reply_mknew()
author
Ralph Boehme
<slow@samba.org>
Thu, 30 Mar 2023 14:02:55 +0000
(16:02 +0200)
committer
Ralph Boehme
<slow@samba.org>
Fri, 31 Mar 2023 05:12:32 +0000
(
05:12
+0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb1_reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb1_reply.c
b/source3/smbd/smb1_reply.c
index 20e6a24a59f828ef1d532d603e37bef2e0adc591..a9d8b4a5178f340191d43c001f85b4cc3418a94e 100644
(file)
--- a/
source3/smbd/smb1_reply.c
+++ b/
source3/smbd/smb1_reply.c
@@
-2240,6
+2240,11
@@
void reply_mknew(struct smb_request *req)
if (ucf_flags & UCF_GMT_PATHNAME) {
extract_snapshot_token(fname, &twrp);
}
+ status = smb1_strip_dfs_path(ctx, &ucf_flags, &fname);
+ if (!NT_STATUS_IS_OK(status)) {
+ reply_nterror(req, status);
+ goto out;
+ }
status = filename_convert_dirfsp(ctx,
conn,