From: Jeremy Allison Date: Thu, 3 Jun 2021 19:28:37 +0000 (-0700) Subject: s3: smbd: rename_internals(), is_visible_file() -> is_visible_fsp(). X-Git-Tag: tevent-0.11.0~573 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5987fab76fdd4636fbcfacff88531105573c37f8;p=thirdparty%2Fsamba.git s3: smbd: rename_internals(), is_visible_file() -> is_visible_fsp(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 8027a868706..73e9146a969 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -8185,15 +8185,6 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx, } } - if (!is_visible_file(conn, - dir_hnd, - dname, - &smb_fname_src->st, - false)) { - TALLOC_FREE(talloced); - continue; - } - if(!mask_match(dname, fname_src_mask, conn->case_sensitive)) { TALLOC_FREE(talloced); continue; @@ -8248,6 +8239,11 @@ NTSTATUS rename_internals(TALLOC_CTX *ctx, break; } + if (!is_visible_fsp(smb_fname_src->fsp, false)) { + TALLOC_FREE(talloced); + continue; + } + create_options = 0; if (S_ISDIR(smb_fname_src->st.st_ex_mode)) {