diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-11-20 00:39:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-11-20 00:39:57 +0000 |
commit | 1abaa7c9d35bf694f0bc98fce89de6ae2c086f93 (patch) | |
tree | 8fe12b43ed635ab139c0ccce411b373c8d3d9f0f /source3/lib/substitute.c | |
parent | 18e55a69ffd30a621484ccc9f5210da132067dc5 (diff) | |
download | samba-1abaa7c9d35bf694f0bc98fce89de6ae2c086f93.tar.gz samba-1abaa7c9d35bf694f0bc98fce89de6ae2c086f93.tar.bz2 samba-1abaa7c9d35bf694f0bc98fce89de6ae2c086f93.zip |
more %U fixes for head
(This used to be commit ea3787d819df14f8b451780a55d2bf76dc4030ef)
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); |