]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: use VFS ftruncate function in fruit_ftruncate_rsrc_adouble()
authorRalph Boehme <slow@samba.org>
Tue, 29 Sep 2020 09:15:10 +0000 (11:15 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 2 Oct 2020 19:39:43 +0000 (19:39 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fruit.c

index 8340a8781233af8540ecf2a4881d8ce73b3930d9..1eacd91253164a490ea5c3e54058ac387b7b6f40 100644 (file)
@@ -3807,7 +3807,7 @@ static int fruit_ftruncate_rsrc_adouble(struct vfs_handle_struct *handle,
 
        ad_off = ad_getentryoff(ad, ADEID_RFORK);
 
-       rc = ftruncate(fsp->fh->fd, offset + ad_off);
+       rc = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset + ad_off);
        if (rc != 0) {
                TALLOC_FREE(ad);
                return -1;