From: Ralph Boehme Date: Fri, 17 May 2019 09:42:06 +0000 (+0200) Subject: vfs_fruit: use proper VFS function in ad_read_meta() X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=30ca328c698c2e035e240359bda7c9dcbeb646df vfs_fruit: use proper VFS function in ad_read_meta() Continuing to ignore a possible error for now, this is in an error codepath anyway. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 6c691a99e648..924052a203f6 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -1580,7 +1580,9 @@ exit: ealen = -1; if (errno == EINVAL) { become_root(); - removexattr(smb_fname->base_name, AFPINFO_EA_NETATALK); + (void)SMB_VFS_REMOVEXATTR(handle->conn, + smb_fname, + AFPINFO_EA_NETATALK); unbecome_root(); errno = ENOENT; }