From d196cf4604208b158a6872ece20be6014a0198f9 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Tue, 29 Sep 2020 11:15:10 +0200 Subject: [PATCH] vfs_fruit: use VFS ftruncate function in fruit_ftruncate_rsrc_adouble() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_fruit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 8340a878123..1eacd912531 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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;