From: Ralph Boehme Date: Tue, 29 Sep 2020 09:15:10 +0000 (+0200) Subject: vfs_fruit: use VFS ftruncate function in fruit_ftruncate_rsrc_adouble() X-Git-Tag: talloc-2.3.2~332 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d196cf4604208b158a6872ece20be6014a0198f9;p=thirdparty%2Fsamba.git vfs_fruit: use VFS ftruncate function in fruit_ftruncate_rsrc_adouble() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- 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;