From 57933a9c6f1a914b69dd38e0346ac17d47f87d45 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 20 Jul 2001 06:25:12 +0000 Subject: In cli_lsa_lookup_sids() don't append a separator character between domain and name if there is no name. (This used to be commit e0ebbc9ae3277a5a389eef021f32509a017cbd4d) --- source3/libsmb/cli_lsarpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/cli_lsarpc.c b/source3/libsmb/cli_lsarpc.c index 4f015f20f0..dcc4a65414 100644 --- a/source3/libsmb/cli_lsarpc.c +++ b/source3/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); -- cgit