From 30ca328c698c2e035e240359bda7c9dcbeb646df Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Fri, 17 May 2019 11:42:06 +0200 Subject: [PATCH] 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 --- source3/modules/vfs_fruit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 6c691a99e64..924052a203f 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; } -- 2.47.3