summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-10-01 15:35:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:05 -0500
commitb2e8ed64cc58645d9bda829ac963eb2c826ddfb5 (patch)
tree0b78083f302e2976b386c559c7c7e99e06d6c945 /source3/nsswitch
parentb6a6fbd49309630e00983f9c2e654b805336ffae (diff)
downloadsamba-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)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wbinfo.c9
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);