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)
committerJeremy Allison <jra@samba.org>
Thu, 30 May 2019 20:19:27 +0000 (20:19 +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>
source3/modules/vfs_fruit.c

index f91adb936c3f7f43ccd1f10ba5f482d557a80bc1..f7fc4feedbb48d1f8c9979523d05a3e6a1b95f5a 100644 (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;