1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

vfs_fruit: add VFS handle to ad_convert_truncate()

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

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Ralph Boehme 2019-05-24 12:05:51 +02:00 committed by Jeremy Allison
parent 4ff7ea0e03
commit 4e44b1da93

View File

@ -1309,7 +1309,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;
@ -1466,7 +1467,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;