From: Ralph Boehme Date: Tue, 23 May 2017 15:39:46 +0000 (+0200) Subject: vfs_fruit: use path based setxattr call in ad_fset() X-Git-Tag: samba-4.5.13~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6c991628ba68341acc84540a3f8a15e0336e00b;p=thirdparty%2Fsamba.git vfs_fruit: use path based setxattr call in ad_fset() 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 Reviewed-by: Richard Sharpe Reviewed-by: Volker Lendecke (backported from commit aff6fc49f4ac244aef162200a37bd846719e1e4f) --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index c73e3ae4c86..1046e6a1e66 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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: