summaryrefslogtreecommitdiffstats
path: root/source/lib/substitute.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2002-10-09 19:50:33 +0000
committerGerald Carter <jerry@samba.org>2002-10-09 19:50:33 +0000
commit0849906f13deb460b3f897934a1d63374e35a548 (patch)
tree90ce8f67d81fb1aeb1d79bfc3ab0cc2b4162275c /source/lib/substitute.c
parentd7ae4079e7f8b75064dbf84c0989208c2d0b4674 (diff)
downloadsamba-0849906f13deb460b3f897934a1d63374e35a548.tar.gz
samba-0849906f13deb460b3f897934a1d63374e35a548.tar.xz
samba-0849906f13deb460b3f897934a1d63374e35a548.zip
sync with SAMBA_2_2 for 2.2.6rc1
Diffstat (limited to 'source/lib/substitute.c')
-rw-r--r--source/lib/substitute.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c
index e6c34d124f8..95393a94ede 100644
--- a/source/lib/substitute.c
+++ b/source/lib/substitute.c
@@ -202,15 +202,11 @@ void standard_sub_basic(char *str, int len)
if (*local_machine)
string_sub(p,"%L", local_machine,l);
else {
- char *ns = p;
-
- string_sub(p,"%L", global_myname,l);
- while (*ns)
- {
- if (isupper(*ns))
- *ns = tolower(*ns);
- ns++;
- }
+ 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); break;