From f9a2be782207013445e2f228a08e44b209a9133c Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 2 Feb 2001 17:42:00 +0000 Subject: Convert netbios name to dos codepage in make_nmb_name(). This allows nmblookup and smbclient to work with i18n netbios names. (This used to be commit 2eabb7c229fb8a64d47757f291b327f5b7f26b55) --- source3/libsmb/nmblib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/libsmb') diff --git a/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c index 01c4001f4c..22ff09faa3 100644 --- a/source3/libsmb/nmblib.c +++ b/source3/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 ); -- cgit