]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: Fix old bug in reply_copy() where is_visible_file(), now is_visible_fsp...
authorJeremy Allison <jra@samba.org>
Fri, 4 Jun 2021 20:37:03 +0000 (13:37 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:30 +0000 (13:14 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/reply.c

index 7efccdeadf92708358de7967103d52c9aff6734f..c8349667818ace7b4fe774e1e6d85ab5fa991ce0 100644 (file)
@@ -8972,6 +8972,11 @@ void reply_copy(struct smb_request *req)
                                continue;
                        }
 
+                       if (IS_VETO_PATH(conn, dname)) {
+                               TALLOC_FREE(talloced);
+                               continue;
+                       }
+
                        if(!mask_match(dname, fname_src_mask,
                                       conn->case_sensitive)) {
                                TALLOC_FREE(talloced);