]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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 07:56:20 +0000 (07:56 +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 e63ed959f3519fdde5fefccfdc0794f3a3b5465c..79a7f5ca2a9dd2a6335f4a3e799a79271fd39715 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;