diff options
author | Tim Potter <tpot@samba.org> | 2001-02-02 17:42:00 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-02-02 17:42:00 +0000 |
commit | f9a2be782207013445e2f228a08e44b209a9133c (patch) | |
tree | 55b53174b7eb81c5d991bc1cd6aa829257404d4f /source3/libsmb | |
parent | 5d67bb9baf47e4dc59ffe0b63d1447ca80e4aa72 (diff) | |
download | samba-f9a2be782207013445e2f228a08e44b209a9133c.tar.gz samba-f9a2be782207013445e2f228a08e44b209a9133c.tar.bz2 samba-f9a2be782207013445e2f228a08e44b209a9133c.zip |
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)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/nmblib.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 ); |