From: Ralph Boehme Date: Thu, 21 Jan 2021 09:41:41 +0000 (+0100) Subject: vfs_fruit: support real dirfsps in fruit_unlink_rsrc_adouble() X-Git-Tag: tevent-0.11.0~1915 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=951fefeca83926e415a46b8a7f3a1c8d0be92ab6;p=thirdparty%2Fsamba.git vfs_fruit: support real dirfsps in fruit_unlink_rsrc_adouble() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 3ea4b28c0a7..405af5c1efb 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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;