Fix wbinfo --group-info if the winbind separator set to non \
[jra/samba/.git] / source / winbindd / winbindd_group.c
index d5d3accec10d452055c5354ae8b5c2e5fa5f65f9..63fde9f495d11e08c879e8b5e83c8b41195a5733 100644 (file)
@@ -806,8 +806,10 @@ static void getgrsid_lookupsid_recv( void *private_data, bool success,
 }
 
        if ( (s->group_name = talloc_asprintf( s->state->mem_ctx, 
-                                              "%s\\%s", 
-                                              dom_name, name )) == NULL )
+                                               "%s%c%s",
+                                               dom_name,
+                                              *lp_winbind_separator(),
+                                               name)) == NULL )
 {
                DEBUG(1, ("getgrsid_lookupsid_recv: talloc_asprintf() Failed!\n"));
                request_error(s->state);