diff options
author | Ralph Boehme <slow@samba.org> | 2023-03-30 16:44:07 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2023-03-31 05:12:32 +0000 |
commit | f32215dbac26db796905ddd4863f1df22a964cd6 (patch) | |
tree | f81cb56e7b252d7de9104179b1ee95e4009e606a /source3/smbd | |
parent | f539e632bb65b1583ce93804e9012ed3089c03ba (diff) | |
download | samba-f32215dbac26db796905ddd4863f1df22a964cd6.tar.gz |
smbd: use smb1_strip_dfs_path() in call_trans2findfirst()
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/smb1_trans2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c index f104807e68a..f24c9d8f87b 100644 --- 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, |