summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerb Lewis <herb@samba.org>2002-09-09 21:01:53 +0000
committerHerb Lewis <herb@samba.org>2002-09-09 21:01:53 +0000
commit43a39e85b67c026a5edd93bcd58b76ae67315975 (patch)
treed9e1b4ab0972bac43b8c2485308106621de91759
parent05e2aba52f9b027bbab7c65cc02fd5c83d3c61aa (diff)
downloadsamba-43a39e85b67c026a5edd93bcd58b76ae67315975.tar.gz
samba-43a39e85b67c026a5edd93bcd58b76ae67315975.tar.xz
samba-43a39e85b67c026a5edd93bcd58b76ae67315975.zip
lowercase global_myname in %L substitution
-rw-r--r--source/lib/substitute.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c
index 767ca0c071a..2550d00d14c 100644
--- a/source/lib/substitute.c
+++ b/source/lib/substitute.c
@@ -297,8 +297,13 @@ void standard_sub_basic(const char *smb_name, char *str,size_t len)
case 'L' :
if (local_machine_name && *local_machine_name)
string_sub(p,"%L", local_machine_name,l);
- else
- string_sub(p,"%L", global_myname,l);
+ else {
+ pstring temp_name;
+
+ pstrcpy(temp_name, global_myname);
+ strlower(temp_name);
+ string_sub(p,"%L", temp_name,l);
+ }
break;
case 'M' :
string_sub(p,"%M", client_name(),l);