summaryrefslogtreecommitdiffstats
path: root/source/lib/substitute.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/lib/substitute.c')
-rw-r--r--source/lib/substitute.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/source/lib/substitute.c b/source/lib/substitute.c
index c1ac1f504a3..387b07bc512 100644
--- a/source/lib/substitute.c
+++ b/source/lib/substitute.c
@@ -168,7 +168,6 @@ static char *automount_server(char *user_name)
void standard_sub_basic(char *str)
{
- extern pstring global_myname;
char *p, *s;
fstring pidstr;
struct passwd *pass;
@@ -198,21 +197,7 @@ void standard_sub_basic(char *str)
string_sub(p,"%D", tmp_str,l);
break;
case 'I' : string_sub(p,"%I", client_addr(),l); break;
- case 'L' :
- 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++;
- }
- }
- break;
+ case 'L' : string_sub(p,"%L", local_machine,l); break;
case 'M' : string_sub(p,"%M", client_name(),l); break;
case 'R' : string_sub(p,"%R", remote_proto,l); break;
case 'T' : string_sub(p,"%T", timestring(False),l); break;