diff options
author | Tim Potter <tpot@samba.org> | 2001-07-20 06:25:12 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-07-20 06:25:12 +0000 |
commit | e0ebbc9ae3277a5a389eef021f32509a017cbd4d (patch) | |
tree | 60a4d003431edfe95e9d6cc2aa0574cdfb754fb4 | |
parent | 37052a1bcc5cd049918c3d5ac4c41c3a669290af (diff) | |
download | samba-e0ebbc9ae3277a5a389eef021f32509a017cbd4d.tar.gz samba-e0ebbc9ae3277a5a389eef021f32509a017cbd4d.tar.xz samba-e0ebbc9ae3277a5a389eef021f32509a017cbd4d.zip |
In cli_lsa_lookup_sids() don't append a separator character between domain
and name if there is no name.
-rw-r--r-- | source/libsmb/cli_lsarpc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/libsmb/cli_lsarpc.c b/source/libsmb/cli_lsarpc.c index 4f015f20f09..dcc4a654147 100644 --- a/source/libsmb/cli_lsarpc.c +++ b/source/libsmb/cli_lsarpc.c @@ -275,7 +275,8 @@ uint32 cli_lsa_lookup_sids(struct cli_state *cli, TALLOC_CTX *mem_ctx, name, &t_names.uni_name[i]); slprintf(full_name, sizeof(full_name) - 1, - "%s%s%s", dom_name, dom_name[0] ? + "%s%s%s", dom_name, + (dom_name[0] && name[0]) ? lp_winbind_separator() : "", name); (*names)[i] = talloc_strdup(mem_ctx, full_name); |