s3: VFS: default. Change pread() -> sys_pread_full() in SMB_VFS_PREAD_SEND() to prote...
authorJeremy Allison <jra@samba.org>
Thu, 7 May 2020 19:45:10 +0000 (12:45 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 12 May 2020 19:53:44 +0000 (19:53 +0000)
commitbf2e546be38abfc77cf40e0b0fef42937696dcde
tree9f1b4144f8ffee0bd24e0443fc9ae02d40f535f9
parentca8c3619f657dc38db7cb248f1a657f5bfe20757
s3: VFS: default. Change pread() -> sys_pread_full() in SMB_VFS_PREAD_SEND() to protect against short reads.

Note that as sys_pread_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