git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f539e63
)
smbd: use smb1_strip_dfs_path() in call_trans2findfirst()
author
Ralph Boehme
<slow@samba.org>
Thu, 30 Mar 2023 14:44:07 +0000
(16:44 +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_trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb1_trans2.c
b/source3/smbd/smb1_trans2.c
index f104807e68ab64da4901a47d5421bd3e940c323b..f24c9d8f87baaa95a021b75baf5c86d17606defd 100644
(file)
--- a/
source3/smbd/smb1_trans2.c
+++ b/
source3/smbd/smb1_trans2.c
@@
-947,6
+947,12
@@
static void call_trans2findfirst(connection_struct *conn,
become_root();
as_root = true;
}
+ ntstatus = smb1_strip_dfs_path(talloc_tos(), &ucf_flags, &directory);
+ if (!NT_STATUS_IS_OK(ntstatus)) {
+ reply_nterror(req, ntstatus);
+ goto out;
+ }
+
ntstatus = filename_convert_smb1_search_path(talloc_tos(),
conn,
directory,