]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use smb1_strip_dfs_path() in reply_checkpath()
authorRalph Boehme <slow@samba.org>
Thu, 30 Mar 2023 13:45:55 +0000 (15:45 +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_reply.c

index 46da29e027782ebaaad37e2558ba2a01e6f3f583..9ed6ac8613273e7501f46ab00627ad5b7cfcb7af 100644 (file)
@@ -695,6 +695,12 @@ void reply_checkpath(struct smb_request *req)
        if (ucf_flags & UCF_GMT_PATHNAME) {
                extract_snapshot_token(name, &twrp);
        }
+       status = smb1_strip_dfs_path(ctx, &ucf_flags, &name);
+       if (!NT_STATUS_IS_OK(status)) {
+               reply_nterror(req, status);
+               goto out;
+       }
+
        status = filename_convert_dirfsp(ctx,
                                         conn,
                                         name,