]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: adouble: Use FREMOVEXATTR in preference to REMOVEXATTR.
authorJeremy Allison <jra@samba.org>
Fri, 12 Mar 2021 22:33:14 +0000 (14:33 -0800)
committerRalph Boehme <slow@samba.org>
Wed, 7 Apr 2021 16:26:28 +0000 (16:26 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/adouble.c

index 39895aff3f84624c91e5e14e98479d4a261104d6..8a34d6ba074cf51e357e1cef0575ac15b4802f18 100644 (file)
@@ -2099,8 +2099,7 @@ exit:
                ealen = -1;
                if (errno == EINVAL) {
                        become_root();
-                       (void)SMB_VFS_REMOVEXATTR(handle->conn,
-                                                 smb_fname,
+                       (void)SMB_VFS_FREMOVEXATTR(smb_fname->fsp,
                                                  AFPINFO_EA_NETATALK);
                        unbecome_root();
                        errno = ENOENT;