summaryrefslogtreecommitdiff
path: root/source3/lib/substitute.c
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
commitdc1c14ca22555e55b9d784980d50ac6ad763f188 (patch)
treeb67dc2f99055a0b67b5bda86925156d2dc01fabb /source3/lib/substitute.c
parent48c91e8b2a01628d03f1d2bdc49c32966d41c96c (diff)
downloadsamba-dc1c14ca22555e55b9d784980d50ac6ad763f188.tar.gz
samba-dc1c14ca22555e55b9d784980d50ac6ad763f188.tar.bz2
samba-dc1c14ca22555e55b9d784980d50ac6ad763f188.zip
lowercase global_myname in %L substitution
(This used to be commit 43a39e85b67c026a5edd93bcd58b76ae67315975)
Diffstat (limited to 'source3/lib/substitute.c')
-rw-r--r--source3/lib/substitute.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c
index 767ca0c071..2550d00d14 100644
--- a/source3/lib/substitute.c
+++ b/source3/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);