]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: use path based setxattr call in ad_fset()
authorRalph Boehme <slow@samba.org>
Tue, 23 May 2017 15:39:46 +0000 (17:39 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 14 Aug 2017 08:50:10 +0000 (10:50 +0200)
This allows later commits to remove opening of the basefile which
conflict with "kernel oplocks = yes".

Bug: https://bugzilla.samba.org/show_bug.cgi?id=12791

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
(backported from commit aff6fc49f4ac244aef162200a37bd846719e1e4f)

source3/modules/vfs_fruit.c

index c73e3ae4c8668413db77e1a94c15fd5625052f4d..1046e6a1e66e5d4d0cfeb794d2297e1fb915fca7 100644 (file)
@@ -1439,11 +1439,11 @@ static int ad_fset(struct adouble *ad, files_struct *fsp)
 
        switch (ad->ad_type) {
        case ADOUBLE_META:
-               rc = SMB_VFS_NEXT_FSETXATTR(ad->ad_handle,
-                                           fsp,
-                                           AFPINFO_EA_NETATALK,
-                                           ad->ad_data,
-                                           AD_DATASZ_XATTR, 0);
+               rc = SMB_VFS_NEXT_SETXATTR(ad->ad_handle,
+                                          fsp->fsp_name->base_name,
+                                          AFPINFO_EA_NETATALK,
+                                          ad->ad_data,
+                                          AD_DATASZ_XATTR, 0);
                break;
 
        case ADOUBLE_RSRC: