r17541: When returning a trans2 request, if the "max data
authorJeremy Allison <jra@samba.org>
Mon, 14 Aug 2006 16:53:14 +0000 (16:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:38 +0000 (11:38 -0500)
commitff2f1202b76991a404dae8df17c36f8135c8dc51
tree2260a1e3816811594aaf4a046801f7dd8aa3a359
parentcf7c83d462dc766fa6f48728d0a4e8d534cc2bd4
r17541: When returning a trans2 request, if the "max data
bytes returned" is less than the amount we want
to send, return what we can and set STATUS_BUFFER_OVERFLOW
(doserror ERRDOS,ERRbufferoverflow). Required by
OS/2 to handle EA's that are too large. It's hard
to test this in Samba4 smbtorture as the max data
bytes returned is hard coded at 0xffff (as it is
in the Samba3 client libraries also). I used a
custom version of Samba4 smbtorture to test this
out. Might add a "max data bytes" param to make
this testable in the build farm. Confirmed by
"Guenter Kukkukk (sambaos2)" <sambaos2@kukkukk.com>
and Andreas Taegener <atsamba11@eideltown.de>
that this fixes the issue.
Jeremy.
source/include/doserr.h
source/smbd/blocking.c
source/smbd/error.c
source/smbd/trans2.c