1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

vfs_fruit: support real dirfsps in fruit_unlink_rsrc_adouble()

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2021-01-21 10:41:41 +01:00 committed by Jeremy Allison
parent c231d88655
commit 951fefeca8

View File

@ -2001,8 +2001,18 @@ static int fruit_unlink_rsrc_adouble(vfs_handle_struct *handle,
struct smb_filename *adp_smb_fname = NULL;
if (!force_unlink) {
ad = ad_get(talloc_tos(), handle, smb_fname,
struct smb_filename *full_fname = NULL;
full_fname = full_path_from_dirfsp_atname(talloc_tos(),
dirfsp,
smb_fname);
if (full_fname == NULL) {
return -1;
}
ad = ad_get(talloc_tos(), handle, full_fname,
ADOUBLE_RSRC);
TALLOC_FREE(full_fname);
if (ad == NULL) {
errno = ENOENT;
return -1;