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)
commitc332ea64856342da6b3e767af7f048d4525313e3
tree2ca97f1e55bb08d92ac577bb14c086ab0846fefd
parent7d092f3cc4f8d2d158aead1d61b43ff85e908a3f
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 cc70a548f3c48a9503fd54d01896cc2499f5bbcd)
source3/client/client.c
source3/configure.in
source3/smbd/reply.c