git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48c91e8
)
lowercase global_myname in %L substitution
author
Herb Lewis
<herb@samba.org>
Mon, 9 Sep 2002 21:01:53 +0000
(21:01 +0000)
committer
Herb Lewis
<herb@samba.org>
Mon, 9 Sep 2002 21:01:53 +0000
(21:01 +0000)
(This used to be commit
43a39e85b67c026a5edd93bcd58b76ae67315975
)
source3/lib/substitute.c
patch
|
blob
|
history
diff --git
a/source3/lib/substitute.c
b/source3/lib/substitute.c
index 767ca0c071add46bd3a52d9a22a40f74333328c8..2550d00d14c7318015433147a968d6862bb5afcb 100644
(file)
--- 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);