]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: use proper VFS function in ad_read_meta()
authorRalph Boehme <slow@samba.org>
Fri, 17 May 2019 09:42:06 +0000 (11:42 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Jun 2019 07:56:18 +0000 (07:56 +0000)
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 30ca328c698c2e035e240359bda7c9dcbeb646df)

source3/modules/vfs_fruit.c

index d58232f80ba717e3bb50f5fd7d51d014cebc6c0e..86065b5d936088212766bf93b02fb14f82c3ff94 100644 (file)
@@ -1578,7 +1578,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;
                }