Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAM...
authorJeremy Allison <jra@samba.org>
Sat, 13 Mar 2004 02:16:26 +0000 (02:16 +0000)
committerJeremy Allison <jra@samba.org>
Sat, 13 Mar 2004 02:16:26 +0000 (02:16 +0000)
commit9a699d74efbcbbb8607c7dea2734d7acb3478896
tree4011e11c2e25b3073f10ab9486ac884702639330
parente4a01b392c518d3706d86d4938ac85707fe275e6
Modified fix for bugid #784. Based on a patch from moriyama@miraclelinux.com (MORIYAMA Masayuki).
Don't use nstrings to hold workgroup and netbios names. The problem with them is that MB netbios
and workgroup names in unix charset (particularly utf8) may be up to 3x bigger than the name
when represented in dos charset (ie. cp932). So go back to using fstrings for these but
translate into nstrings (ie. 16 byte length values) for transport on the wire.
Jeremy.
(This used to be commit 128dec9ae68fd357550de2649d54056ca4fc65cf)
25 files changed:
source3/include/nameserv.h
source3/lib/charcnv.c
source3/lib/util_str.c
source3/libsmb/libsmbclient.c
source3/libsmb/namequery.c
source3/libsmb/nmblib.c
source3/nmbd/asyncdns.c
source3/nmbd/nmbd_become_dmb.c
source3/nmbd/nmbd_become_lmb.c
source3/nmbd/nmbd_browserdb.c
source3/nmbd/nmbd_browsesync.c
source3/nmbd/nmbd_elections.c
source3/nmbd/nmbd_incomingdgrams.c
source3/nmbd/nmbd_incomingrequests.c
source3/nmbd/nmbd_logonnames.c
source3/nmbd/nmbd_mynames.c
source3/nmbd/nmbd_namelistdb.c
source3/nmbd/nmbd_nameregister.c
source3/nmbd/nmbd_packets.c
source3/nmbd/nmbd_processlogon.c
source3/nmbd/nmbd_synclists.c
source3/nmbd/nmbd_winsproxy.c
source3/nmbd/nmbd_winsserver.c
source3/nmbd/nmbd_workgroupdb.c
source3/smbd/negprot.c