diff options
author | Michael Adam <obnox@samba.org> | 2007-10-01 15:35:05 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:31:05 -0500 |
commit | b2e8ed64cc58645d9bda829ac963eb2c826ddfb5 (patch) | |
tree | 0b78083f302e2976b386c559c7c7e99e06d6c945 | |
parent | b6a6fbd49309630e00983f9c2e654b805336ffae (diff) | |
download | samba-b2e8ed64cc58645d9bda829ac963eb2c826ddfb5.tar.gz samba-b2e8ed64cc58645d9bda829ac963eb2c826ddfb5.tar.bz2 samba-b2e8ed64cc58645d9bda829ac963eb2c826ddfb5.zip |
r25441: Make wbinfo --sequence output the sequence number if --domain
is specified.
Michael
(This used to be commit b0f59f18bc8e95a98ee44fcc751f3af4e96d5924)
-rw-r--r-- | source3/nsswitch/wbinfo.c | 9 |
1 files changed, 8 insertions, 1 deletions
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); |