From: Ralph Boehme Date: Fri, 24 May 2019 10:05:51 +0000 (+0200) Subject: vfs_fruit: add VFS handle to ad_convert_truncate() X-Git-Tag: samba-4.9.10~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14048aaf176cf34417c826aad0e8d92dc131e1ea;p=thirdparty%2Fsamba.git vfs_fruit: add VFS handle to ad_convert_truncate() Bug: https://bugzilla.samba.org/show_bug.cgi?id=13968 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison (cherry picked from commit 4e44b1da9357120f0ad74e24c650bc6386085c47) --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index e63ed959f35..79a7f5ca2a9 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -1307,7 +1307,8 @@ static bool ad_convert_finderinfo(vfs_handle_struct *handle, return true; } -static bool ad_convert_truncate(struct adouble *ad, +static bool ad_convert_truncate(vfs_handle_struct *handle, + struct adouble *ad, const struct smb_filename *smb_fname) { int rc; @@ -1464,7 +1465,7 @@ static int ad_convert(struct vfs_handle_struct *handle, } if (converted_xattr || blank) { - ok = ad_convert_truncate(ad, smb_fname); + ok = ad_convert_truncate(handle, ad, smb_fname); if (!ok) { ret = -1; goto done;