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)
commit6fd4813ece5e03c92334acfa7e168cd7d0248919
tree8abb94bdb18825437feb20e67098cd6afe538415
parentb757699e8b14fb0d5780e2513ffe64c087f5871d
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.
(This used to be commit ff2f1202b76991a404dae8df17c36f8135c8dc51)
source3/include/doserr.h
source3/smbd/blocking.c
source3/smbd/error.c
source3/smbd/trans2.c