Fix problems with very long filenames in both smbd and smbclient.
authorAlexander Bokovoy <ab@samba.org>
Fri, 12 Mar 2004 14:28:14 +0000 (14:28 +0000)
committerAlexander Bokovoy <ab@samba.org>
Fri, 12 Mar 2004 14:28:14 +0000 (14:28 +0000)
commitcc70a548f3c48a9503fd54d01896cc2499f5bbcd
tree430ca527f301a0d91e471201bf2ac3ddafbce143
parente117ed1db84b2447793ccea4036e225c4a552e1e
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.
source/client/client.c
source/configure.in
source/smbd/reply.c