s3/lib: SMB_VFS_NEXT_SETXATTR -> SMB_VFS_NEXT_FSETXATTR
authorNoel Power <noel.power@suse.com>
Fri, 19 Feb 2021 12:43:00 +0000 (12:43 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 11 Mar 2021 17:50:30 +0000 (17:50 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/adouble.c

index 4a109b70d511371db39caeef6137806ba992932b..39895aff3f84624c91e5e14e98479d4a261104d6 100644 (file)
@@ -2640,13 +2640,12 @@ int ad_fset(struct vfs_handle_struct *handle,
 
        switch (ad->ad_type) {
        case ADOUBLE_META:
-               rc = SMB_VFS_NEXT_SETXATTR(handle,
-                                          fsp->fsp_name,
-                                          AFPINFO_EA_NETATALK,
-                                          ad->ad_data,
-                                          AD_DATASZ_XATTR, 0);
+               rc = SMB_VFS_NEXT_FSETXATTR(handle,
+                                  fsp->base_fsp ? fsp->base_fsp : fsp,
+                                  AFPINFO_EA_NETATALK,
+                                  ad->ad_data,
+                                  AD_DATASZ_XATTR, 0);
                break;
-
        case ADOUBLE_RSRC:
                len = SMB_VFS_NEXT_PWRITE(handle,
                                          fsp,