summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-02-02 17:42:00 +0000
committerTim Potter <tpot@samba.org>2001-02-02 17:42:00 +0000
commit2eabb7c229fb8a64d47757f291b327f5b7f26b55 (patch)
tree09df8b439163784ef299767632747150eb523794
parentd0c5339486c38b988d39fbf83bfb98c1258dd98d (diff)
downloadsamba-2eabb7c229fb8a64d47757f291b327f5b7f26b55.tar.gz
samba-2eabb7c229fb8a64d47757f291b327f5b7f26b55.tar.xz
samba-2eabb7c229fb8a64d47757f291b327f5b7f26b55.zip
Convert netbios name to dos codepage in make_nmb_name(). This allows
nmblookup and smbclient to work with i18n netbios names.
-rw-r--r--source/libsmb/nmblib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c
index 01c4001f4cf..22ff09faa31 100644
--- a/source/libsmb/nmblib.c
+++ b/source/libsmb/nmblib.c
@@ -832,6 +832,7 @@ void make_nmb_name( struct nmb_name *n, const char *name, int type)
extern pstring global_scope;
memset( (char *)n, '\0', sizeof(struct nmb_name) );
StrnCpy( n->name, name, 15 );
+ unix_to_dos(n->name, True);
strupper( n->name );
n->name_type = (unsigned int)type & 0xFF;
StrnCpy( n->scope, global_scope, 63 );