Remove trailing withespace from wbinfo -m which breaks gdm auth.
[ira/wip.git] / source3 / nsswitch / wbinfo.c
index 2fb46c4a2f701f5cf30cd7824d1ec91989069e79..c1d41a53fdc785e91c867d38966d50a0df09c1f3 100644 (file)
@@ -359,10 +359,11 @@ static bool wbinfo_list_domains(bool list_all_domains, bool verbose)
        }
 
        for (i=0; i<num_domains; i++) {
        }
 
        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;
                }
 
                        continue;
                }