vfs_fruit: add VFS handle to ad_convert_truncate()
authorRalph Boehme <slow@samba.org>
Fri, 24 May 2019 10:05:51 +0000 (12:05 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Jun 2019 06:49:33 +0000 (06:49 +0000)
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)

source3/modules/vfs_fruit.c

index 630d53afbe777bdcbc78b39c14b1efcf9a0946da..46355d2146e8f0ee83cd5e41e3b9b5f9e6dd73dd 100644 (file)
@@ -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;