summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-05-24 12:05:51 +0200
committerKarolin Seeger <kseeger@samba.org>2019-06-21 07:56:20 +0000
commit14048aaf176cf34417c826aad0e8d92dc131e1ea (patch)
treea460a1db828a6123d40d2c2c42d8d1a27b470e53
parent015586a42274edc210d71fdc8d9158ecdd59d7b9 (diff)
downloadsamba-14048aaf176cf34417c826aad0e8d92dc131e1ea.tar.gz
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> (cherry picked from commit 4e44b1da9357120f0ad74e24c650bc6386085c47)
-rw-r--r--source3/modules/vfs_fruit.c5
1 files changed, 3 insertions, 2 deletions
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;