From: Jeremy Allison Date: Thu, 7 May 2020 19:42:53 +0000 (-0700) Subject: s3: VFS: aio_fork: Change sys_pwrite() -> sys_pwrite_full() to protect against short... X-Git-Tag: ldb-2.2.0~541 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=20ee8b03bbe5bef4ea968170808e3c4c9d22318e;p=thirdparty%2Fsamba.git s3: VFS: aio_fork: Change sys_pwrite() -> sys_pwrite_full() to protect against short writes. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14361 Signed-off-by: Jeremy Allison Reviewed-by: Stefan Metzmacher --- diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 285b331ff9c..7c6f4b00fd0 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -353,7 +353,7 @@ static void aio_child_loop(int sockfd, struct mmap_area *map) #endif break; case WRITE_CMD: - ret_struct.size = sys_pwrite( + ret_struct.size = sys_pwrite_full( fd, discard_const(map->ptr), cmd_struct.n, cmd_struct.offset); break;