chaddow wrote:
> So the question is has the format of the output from wbinfo -m really
> changed and if so has this broken the gdm domian list initialisation ? or am
> I doing/overlooking something really stupid ?
Hi,
the attached patch should fix the problem.
-- andreas
From c38be89dd610859964998f629b5c5b7849f8c383 Mon Sep 17 00:00:00 2001
From: Andreas Schneider <
anschneider@...>
Date: Mon, 21 Jul 2008 11:52:10 +0200
Subject: [PATCH] Remove trailing withespace from wbinfo -m which breaks gdm auth.
Signed-off-by: Andreas Schneider <
anschneider@...>
---
source/nsswitch/wbinfo.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c
index 22d9b21..32c6315 100644
--- a/source/nsswitch/wbinfo.c
+++ b/source/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;
}
--
1.5.6