From: Volker Lendecke Date: Fri, 8 Dec 2017 13:07:47 +0000 (+0100) Subject: vfs_aio_fork: Fix vfs_aio_pwrite X-Git-Tag: talloc-2.1.11~247 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4091179ca890b095ef17f59b2bf008ae0a13a3bf;p=thirdparty%2Fsamba.git vfs_aio_fork: Fix vfs_aio_pwrite Make the data to write available to the child Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c index 1538ed9cf46..40fba4dbdc0 100644 --- a/source3/modules/vfs_aio_fork.c +++ b/source3/modules/vfs_aio_fork.c @@ -703,6 +703,8 @@ static struct tevent_req *aio_fork_pwrite_send( return tevent_req_post(req, ev); } + memcpy(state->child->map->ptr, data, n); + ZERO_STRUCT(cmd); cmd.n = n; cmd.offset = offset;