diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-03-06 19:48:09 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-03-06 19:48:09 +0000 |
commit | 8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c (patch) | |
tree | bbdaa6189f1e7c68d62246edeb4bac2c777310c4 /source3 | |
parent | 37a9d2a9c2fe00094bd1788c9b572d395e1fa6e7 (diff) | |
download | samba-8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c.tar.gz samba-8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c.tar.xz samba-8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c.zip |
nicer message for --sequence when the server is disconnected
(This used to be commit 233e8b7d447b7efb0227c6c7a6cd2f9e034719fa)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_misc.c | 9 |
1 files changed, 7 insertions, 2 deletions
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; } |