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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 14 May 2020 07:25:45 +0000 (07:25 +0000)
commit00e0cf4241be4142316882d70e03a2b20258c224
tree25ef43d99f84ab1b88f0fb3b599ceecc7c762f5d
parent838a52fa25ebf7e399e086eed6be4b5c0f3db743
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>
(cherry picked from commit bf2e546be38abfc77cf40e0b0fef42937696dcde)
source3/modules/vfs_default.c