Fix problems with very long filenames in both smbd and smbclient.
commit6011a89e240ba8a51163baee51da98d2b32ab98c
authorAlexander Bokovoy <ab@samba.org>
Fri, 12 Mar 2004 14:37:37 +0000 (12 14:37 +0000)
committerAlexander Bokovoy <ab@samba.org>
Fri, 12 Mar 2004 14:37:37 +0000 (12 14:37 +0000)
tree1c1208b2cbc02c4b8a30a1d180e38d877cc0f7cd
parent82053806f5fa66cfd47288997df7351284f6e096
Fix problems with very long filenames in both smbd and smbclient.
It appears that we pass filename through resolve_wildcards() as pstring and use fstring temporary buffer there.
As result, a long filename in unix charset (UTF-8 by default) can easily expand over 255 bytes while
Windows is able to send to us such names (e.g. Japanese name of ~190 mb chars) which we unable to process through
this small fstring buffer. Tested with W2K and smbclient, Japanese and Cyrillics.
(This used to be commit 83dac6571f99b854ac607d4313cc3f742c1fae2e)
source3/client/client.c
source3/smbd/reply.c