summaryrefslogtreecommitdiffstats
path: root/nsswitch
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-21 21:03:40 +0200
committerAndreas Schneider <asn@samba.org>2013-11-13 11:40:28 +0100
commitf7240932afdc1a50cdb9f43f8d3752a5717163de (patch)
treed4fcf8b9e82ffbd0ed2c5397a961b6f060bcb9cd /nsswitch
parentfdf28f0898de9372dde58735e4af8e15e3536d99 (diff)
downloadsamba-f7240932afdc1a50cdb9f43f8d3752a5717163de.tar.gz
samba-f7240932afdc1a50cdb9f43f8d3752a5717163de.tar.xz
samba-f7240932afdc1a50cdb9f43f8d3752a5717163de.zip
wbinfo: fix output of "--lookup-sids" to use the configured winbind separator
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wbinfo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c
index 0a7fa965be4..04478a75519 100644
--- a/nsswitch/wbinfo.c
+++ b/nsswitch/wbinfo.c
@@ -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);
}
}