From: Ralph Boehme Date: Thu, 21 Jan 2021 09:27:22 +0000 (+0100) Subject: vfs_fruit: use SMB_VFS_FREMOVEXATTR() in fruit_unlink_meta_netatalk() X-Git-Tag: tevent-0.11.0~1917 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb90a8dc794357a7bb7b72d6efb743e9afc18bb4;p=thirdparty%2Fsamba.git vfs_fruit: use SMB_VFS_FREMOVEXATTR() in fruit_unlink_meta_netatalk() Use the pathref fsp from the caller. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index c453d74efde..8d2e4efe6ca 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -1900,8 +1900,9 @@ static int fruit_unlink_meta_stream(vfs_handle_struct *handle, static int fruit_unlink_meta_netatalk(vfs_handle_struct *handle, const struct smb_filename *smb_fname) { - return SMB_VFS_REMOVEXATTR(handle->conn, - smb_fname, + SMB_ASSERT(smb_fname->fsp != NULL); + SMB_ASSERT(smb_fname->fsp->base_fsp != NULL); + return SMB_VFS_FREMOVEXATTR(smb_fname->fsp->base_fsp, AFPINFO_EA_NETATALK); }