summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorAndreas Schneider <anschneider@suse.de>2008-07-21 11:52:10 +0200
committerJeremy Allison <jra@samba.org>2008-07-24 13:41:37 -0700
commit4cdc6b3b235b3c5738c553577d2603cb08d2c916 (patch)
treea777bd1603958562243eca0866315b814f8ec4f7 /source3/nsswitch
parent61859a18f0996eef8300e59788773d5f11ed9c0d (diff)
downloadsamba-4cdc6b3b235b3c5738c553577d2603cb08d2c916.tar.gz
samba-4cdc6b3b235b3c5738c553577d2603cb08d2c916.tar.bz2
samba-4cdc6b3b235b3c5738c553577d2603cb08d2c916.zip
Remove trailing withespace from wbinfo -m which breaks gdm auth.
Signed-off-by: Andreas Schneider <anschneider@suse.de> (This used to be commit 12848e8eb91bf60551ada78e3430ee25142e366b)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wbinfo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 2fb46c4a2f..c1d41a53fd 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -359,10 +359,11 @@ static bool wbinfo_list_domains(bool list_all_domains, bool verbose)
}
for (i=0; i<num_domains; i++) {
- d_printf("%-16s", domain_list[i].short_name);
-
- if (!print_all) {
- d_printf("\n");
+ if (print_all) {
+ d_printf("%-16s", domain_list[i].short_name);
+ } else {
+ d_printf("%s", domain_list[i].short_name);
+ d_printf("\n");
continue;
}