From 1abaa7c9d35bf694f0bc98fce89de6ae2c086f93 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 20 Nov 2002 00:39:57 +0000 Subject: more %U fixes for head (This used to be commit ea3787d819df14f8b451780a55d2bf76dc4030ef) --- source3/lib/substitute.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/substitute.c b/source3/lib/substitute.c index 48d8e35dae..2d1b2ab1fa 100644 --- a/source3/lib/substitute.c +++ b/source3/lib/substitute.c @@ -68,6 +68,9 @@ void sub_set_smb_name(const char *name) { fstring tmp; + /* don't let anonymous logins override the name */ + if (! *name) return; + fstrcpy(tmp,name); trim_string(tmp," "," "); strlower(tmp); -- cgit