From 5987fab76fdd4636fbcfacff88531105573c37f8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 3 Jun 2021 12:28:37 -0700 Subject: [PATCH] s3: smbd: rename_internals(), is_visible_file() -> is_visible_fsp(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- source3/smbd/reply.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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)) { -- 2.47.3