git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60f5900
)
s3: VFS: aio_fork: Change sys_pwrite() -> sys_pwrite_full() to protect against short...
author
Jeremy Allison
<jra@samba.org>
Thu, 7 May 2020 19:42:53 +0000
(12:42 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 12 May 2020 19:53:44 +0000
(19:53 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14361
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/modules/vfs_aio_fork.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_aio_fork.c
b/source3/modules/vfs_aio_fork.c
index 285b331ff9cac66ec39386857d750652b9a050f7..7c6f4b00fd04b020c68722cd95e3e50a93862b79 100644
(file)
--- 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;