summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_misc.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-06 19:48:09 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-06 19:48:09 +0000
commit8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c (patch)
treebbdaa6189f1e7c68d62246edeb4bac2c777310c4 /source3/nsswitch/winbindd_misc.c
parent37a9d2a9c2fe00094bd1788c9b572d395e1fa6e7 (diff)
downloadsamba-8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c.tar.gz
samba-8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c.tar.bz2
samba-8e7e1fe9f8b5350d2c36f001a1b7afc11b39af7c.zip
nicer message for --sequence when the server is disconnected
(This used to be commit 233e8b7d447b7efb0227c6c7a6cd2f9e034719fa)
Diffstat (limited to 'source3/nsswitch/winbindd_misc.c')
-rw-r--r--source3/nsswitch/winbindd_misc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index 8b22b87c3d..b177c26796 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;
}