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:
parent
7f49bb9f6f
commit
04ea123299
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user