diff options
author | Jeremy Allison <jra@samba.org> | 2013-03-15 11:57:48 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-03-20 09:32:26 -0700 |
commit | fd88520497b4043e9d81656f7cb56a7b25245c2a (patch) | |
tree | fab3fa19a01e59b91936839eb52e752a81a30d81 /release-scripts/build-manpages-nogit | |
parent | 21707defe06e1db18a6645b0b56db4178e3df5f6 (diff) | |
download | samba-fd88520497b4043e9d81656f7cb56a7b25245c2a.tar.gz samba-fd88520497b4043e9d81656f7cb56a7b25245c2a.tar.bz2 samba-fd88520497b4043e9d81656f7cb56a7b25245c2a.zip |
s3:smbd: Add functions calc_max_read_pdu()/calc_read_size() to work out the length we should return.
LARGE_READX test shows it's always safe to return a short read.
Windows does so. Do the calculations to return what will fit
in a read depending on what the client negotiated.
Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'release-scripts/build-manpages-nogit')
0 files changed, 0 insertions, 0 deletions