smbd: Avoid large reads beyond EOF
authorVolker Lendecke <vl@samba.org>
Wed, 27 Apr 2016 10:15:37 +0000 (12:15 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 27 Apr 2016 21:57:56 +0000 (23:57 +0200)
commit10b0a8baa25fab70df8e6c5f0048ce0963211517
treeb02e837e182e5bc3a799400eaa78e75eb52f14f3
parent07e2f4731e5819a893c4675d93fede5ea261bed7
smbd: Avoid large reads beyond EOF

With unix extensions and oplocks=no mount.cifs from jessie reads beyond the
file end forever, and we are happy to return zeros....

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11878

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Apr 27 23:57:56 CEST 2016 on sn-devel-144
source3/smbd/reply.c