]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
In cli_lsa_lookup_sids() don't append a separator character between domain
authorTim Potter <tpot@samba.org>
Fri, 20 Jul 2001 06:25:12 +0000 (06:25 +0000)
committerTim Potter <tpot@samba.org>
Fri, 20 Jul 2001 06:25:12 +0000 (06:25 +0000)
and name if there is no name.

source/libsmb/cli_lsarpc.c

index 4f015f20f09ad2b50b9d2ea760be8f8b21f7b314..dcc4a654147de6fc9358812a48da57a7f19a7899 100644 (file)
@@ -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);