diff options
Diffstat (limited to 'source3/lib/substitute.c')
-rw-r--r-- | source3/lib/substitute.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |