]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: use SMB_VFS_FREMOVEXATTR() in fruit_unlink_meta_netatalk()
authorRalph Boehme <slow@samba.org>
Thu, 21 Jan 2021 09:27:22 +0000 (10:27 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 28 Jan 2021 08:11:49 +0000 (08:11 +0000)
Use the pathref fsp from the caller.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c

index c453d74efdee2954546d6487249f59503c0c1ba6..8d2e4efe6ca8e8afe5a7af6a44be080d725bb422 100644 (file)
@@ -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);
 }