wbinfo: fix output of "--lookup-sids" to use the configured winbind separator
authorMichael Adam <obnox@samba.org>
Sat, 21 Sep 2013 19:03:40 +0000 (21:03 +0200)
committerAndreas Schneider <asn@samba.org>
Wed, 13 Nov 2013 10:40:28 +0000 (11:40 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
nsswitch/wbinfo.c

index 0a7fa965be4b5eecaceac599b40349e487904ce4..04478a7551976a69d4f6b4a0122d97c88245ed3c 100644 (file)
@@ -1398,8 +1398,9 @@ static bool wbinfo_lookup_sids(const char *arg)
                                 domains[names[i].domain_index].short_name,
                                 names[i].type);
                } else {
-                       d_printf("%s -> %s\\%s %d\n", sidstr,
+                       d_printf("%s -> %s%c%s %d\n", sidstr,
                                 domains[names[i].domain_index].short_name,
+                                winbind_separator(),
                                 names[i].name, names[i].type);
                }
        }