1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

s3: smbd: Change recursive_rmdir(), 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:
Jeremy Allison 2021-06-02 17:42:27 -07:00 committed by Ralph Boehme
parent c064758fce
commit e6377a909a

View File

@ -877,15 +877,6 @@ bool recursive_rmdir(TALLOC_CTX *ctx,
continue;
}
if (!is_visible_file(conn,
dir_hnd,
dname,
&st,
false)) {
TALLOC_FREE(talloced);
continue;
}
/* Construct the full name. */
fullname = talloc_asprintf(ctx,
"%s/%s",
@ -931,6 +922,14 @@ bool recursive_rmdir(TALLOC_CTX *ctx,
goto err_break;
}
if (!is_visible_fsp(atname->fsp, false)) {
TALLOC_FREE(smb_dname_full);
TALLOC_FREE(fullname);
TALLOC_FREE(talloced);
TALLOC_FREE(atname);
continue;
}
retval = SMB_VFS_UNLINKAT(conn,
dirfsp,
atname,