From 8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 Mar 2002 19:48:09 +0000 Subject: nicer message for --sequence when the server is disconnected (This used to be commit 233e8b7d447b7efb0227c6c7a6cd2f9e034719fa) --- source3/nsswitch/winbindd_misc.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c index 8b22b87c3d0..b177c26796b 100644 --- a/source3/nsswitch/winbindd_misc.c +++ b/source3/nsswitch/winbindd_misc.c @@ -162,8 +162,13 @@ enum winbindd_result winbindd_show_sequence(struct winbindd_cli_state *state) domain->methods->sequence_number(domain, &domain->sequence_number); - asprintf(&s,"%s%s : %u\n", extra_data, - domain->name, (unsigned)domain->sequence_number); + if (DOM_SEQUENCE_NONE == (unsigned)domain->sequence_number) { + asprintf(&s,"%s%s : %u\n", extra_data, + domain->name, (unsigned)domain->sequence_number); + } else { + asprintf(&s,"%s%s : DISCONNECTED\n", extra_data, + domain->name); + } free(extra_data); extra_data = s; } -- cgit