diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-11-14 04:16:07 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-11-14 04:16:07 +0000 |
commit | dddf1d8522707b828cac466c4a9ab2807d098573 (patch) | |
tree | 5d1a923a717c7db00e1913129578fbafc4240dda /source/libsmb | |
parent | c58f4965100692d8edcd613a341df9e2ad88cfa0 (diff) | |
download | samba-dddf1d8522707b828cac466c4a9ab2807d098573.tar.gz samba-dddf1d8522707b828cac466c4a9ab2807d098573.tar.xz samba-dddf1d8522707b828cac466c4a9ab2807d098573.zip |
automatically uppercase server and share names (win95 won't handle
lowercase share names!)
Diffstat (limited to 'source/libsmb')
-rw-r--r-- | source/libsmb/clientgen.c | 1 | ||||
-rw-r--r-- | source/libsmb/nmblib.c | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c index 81f75d2cb2a..550f7cc391d 100644 --- a/source/libsmb/clientgen.c +++ b/source/libsmb/clientgen.c @@ -839,6 +839,7 @@ BOOL cli_send_tconX(struct cli_state *cli, slprintf(fullshare, sizeof(fullshare)-1, "\\\\%s\\%s", cli->desthost, share); + strupper(fullshare); set_message(cli->outbuf,4, 2 + strlen(fullshare) + passlen + strlen(dev),True); diff --git a/source/libsmb/nmblib.c b/source/libsmb/nmblib.c index b91a2944a3e..7f3bcc9642a 100644 --- a/source/libsmb/nmblib.c +++ b/source/libsmb/nmblib.c @@ -764,12 +764,12 @@ static int build_dgram(char *buf,struct packet_struct *p) *******************************************************************/ void make_nmb_name( struct nmb_name *n, const char *name, int type, const char *this_scope ) { - memset( (char *)n, '\0', sizeof(struct nmb_name) ); - StrnCpy( n->name, name, 15 ); - strupper( n->name ); - n->name_type = (unsigned int)type & 0xFF; - StrnCpy( n->scope, this_scope, 63 ); - strupper( n->scope ); + memset( (char *)n, '\0', sizeof(struct nmb_name) ); + StrnCpy( n->name, name, 15 ); + strupper( n->name ); + n->name_type = (unsigned int)type & 0xFF; + StrnCpy( n->scope, this_scope, 63 ); + strupper( n->scope ); } /******************************************************************* |