From: Jeremy Allison Date: Fri, 4 Jun 2021 20:37:03 +0000 (-0700) Subject: s3: smbd: Fix old bug in reply_copy() where is_visible_file(), now is_visible_fsp... X-Git-Tag: tevent-0.11.0~571 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=138078c94497882e0b1cd0f2c3aba67b38a2db85;p=thirdparty%2Fsamba.git s3: smbd: Fix old bug in reply_copy() where is_visible_file(), now is_visible_fsp() wasn't checking VETO files. Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 7efccdeadf9..c8349667818 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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);