vfs_aio_fork: Fix vfs_aio_pwrite
authorVolker Lendecke <vl@samba.org>
Fri, 8 Dec 2017 13:07:47 +0000 (14:07 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 12 Dec 2017 19:37:08 +0000 (20:37 +0100)
Make the data to write available to the child

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/modules/vfs_aio_fork.c

index 1538ed9cf4641b7c8fabed34b4f6a7220c673b9a..40fba4dbdc0e8359660d627c2b84bc4a6b3289ab 100644 (file)
@@ -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;