]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use smb1_strip_dfs_path() in reply_ctemp()
authorRalph Boehme <slow@samba.org>
Thu, 30 Mar 2023 14:03:30 +0000 (16:03 +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 a9d8b4a5178f340191d43c001f85b4cc3418a94e..28bb23352bd5d9a3eda71d366efb8230b86984c0 100644 (file)
@@ -2395,6 +2395,12 @@ void reply_ctemp(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,
                                                 fname,