From b2e8ed64cc58645d9bda829ac963eb2c826ddfb5 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 1 Oct 2007 15:35:05 +0000 Subject: r25441: Make wbinfo --sequence output the sequence number if --domain is specified. Michael (This used to be commit b0f59f18bc8e95a98ee44fcc751f3af4e96d5924) --- source3/nsswitch/wbinfo.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index bd5c6392f1..26ae2aff89 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/nsswitch/wbinfo.c @@ -423,7 +423,14 @@ static BOOL wbinfo_show_sequence(const char *domain) /* Display response */ - if (response.extra_data.data) { + if (domain) { + d_printf("%s : ", domain); + if (response.data.sequence_number == (uint32_t)-1) { + d_printf("DISCONNECTED\n"); + } else { + d_printf("%d\n", response.data.sequence_number); + } + } else if (response.extra_data.data) { char *extra_data = (char *)response.extra_data.data; d_printf("%s", extra_data); SAFE_FREE(response.extra_data.data); -- cgit