summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-11-14 04:16:07 +0000
committerAndrew Tridgell <tridge@samba.org>1998-11-14 04:16:07 +0000
commit3ba68d045c4f1f2c6dea014d11189cbabc3e0eb1 (patch)
tree7896b5d63509dc54e3f7a28e6af54ad104520425 /source3/libsmb
parentc57ab7807d28e642fcbf3315bcb336db03cc0625 (diff)
downloadsamba-3ba68d045c4f1f2c6dea014d11189cbabc3e0eb1.tar.gz
samba-3ba68d045c4f1f2c6dea014d11189cbabc3e0eb1.tar.bz2
samba-3ba68d045c4f1f2c6dea014d11189cbabc3e0eb1.zip
automatically uppercase server and share names (win95 won't handle
lowercase share names!) (This used to be commit dddf1d8522707b828cac466c4a9ab2807d098573)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c1
-rw-r--r--source3/libsmb/nmblib.c12
2 files changed, 7 insertions, 6 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 81f75d2cb2..550f7cc391 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/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/source3/libsmb/nmblib.c b/source3/libsmb/nmblib.c
index b91a2944a3..7f3bcc9642 100644
--- a/source3/libsmb/nmblib.c
+++ b/source3/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 );
}
/*******************************************************************