mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
s3: smbd: In smbd_dirptr_get_entry() add a call to is_visible_fsp().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
d3161dd1e4
commit
a66b7de76a
@ -982,6 +982,13 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!is_visible_fsp(smb_fname->fsp, false)) {
|
||||
TALLOC_FREE(smb_fname);
|
||||
TALLOC_FREE(dname);
|
||||
TALLOC_FREE(fname);
|
||||
continue;
|
||||
}
|
||||
|
||||
ok = mode_fn(ctx, private_data, smb_fname, get_dosmode, &mode);
|
||||
if (!ok) {
|
||||
TALLOC_FREE(smb_fname);
|
||||
|
Loading…
x
Reference in New Issue
Block a user