s3: VFS: default. Change pwrite() -> sys_pwrite_full() in SMB_VFS_PWRITE_SEND() to...
authorJeremy Allison <jra@samba.org>
Thu, 7 May 2020 19:48:49 +0000 (12:48 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 12 May 2020 19:53:44 +0000 (19:53 +0000)
commit801c06f4c9400343b72cad998086288931f7c6b3
tree3dc5bd56caa0c125fd3e0316b55600ed738f3b2e
parentbf2e546be38abfc77cf40e0b0fef42937696dcde
s3: VFS: default. Change pwrite() -> sys_pwrite_full() in SMB_VFS_PWRITE_SEND() to protect against short writes.

Note that as sys_pwrite_full() deals with the EINTR case
we can remove the do {} while loop here.

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_default.c