1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3: VFS: vfs_fruit. Add struct files_struct *dirfsp parameter to fruit_unlink_meta_stream() and convert to UNLINKAT.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Jeremy Allison 2019-09-13 13:46:00 -07:00 committed by Ralph Boehme
parent 7f49bb9f6f
commit 04ea123299

View File

@ -1776,9 +1776,13 @@ done:
}
static int fruit_unlink_meta_stream(vfs_handle_struct *handle,
const struct smb_filename *smb_fname)
struct files_struct *dirfsp,
const struct smb_filename *smb_fname)
{
return SMB_VFS_NEXT_UNLINK(handle, smb_fname);
return SMB_VFS_NEXT_UNLINKAT(handle,
dirfsp,
smb_fname,
0);
}
static int fruit_unlink_meta_netatalk(vfs_handle_struct *handle,
@ -1801,7 +1805,9 @@ static int fruit_unlink_meta(vfs_handle_struct *handle,
switch (config->meta) {
case FRUIT_META_STREAM:
rc = fruit_unlink_meta_stream(handle, smb_fname);
rc = fruit_unlink_meta_stream(handle,
dirfsp,
smb_fname);
break;
case FRUIT_META_NETATALK: