mirror of
https://github.com/samba-team/samba.git
synced 2025-02-01 05:47:28 +03:00
s3: smbd: rename_internals(), is_visible_file() -> is_visible_fsp().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
146f7bf4fb
commit
5987fab76f
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user