]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use smb1_strip_dfs_path() in call_trans2qpathinfo()
authorRalph Boehme <slow@samba.org>
Thu, 30 Mar 2023 14:08:11 +0000 (16:08 +0200)
committerRalph 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

index c46b7a224bf96acae2990666a9cfa07247ead026..3d674f680971f4d20f69e382f353b9b02fba484b 100644 (file)
@@ -2647,6 +2647,11 @@ static void call_trans2qpathinfo(
        if (ucf_flags & UCF_GMT_PATHNAME) {
                extract_snapshot_token(fname, &twrp);
        }
+       status = smb1_strip_dfs_path(req, &ucf_flags, &fname);
+       if (!NT_STATUS_IS_OK(status)) {
+               reply_nterror(req, status);
+               return;
+       }
        status = filename_convert_dirfsp(req,
                                         conn,
                                         fname,