svn commit: samba r25442 - in branches/SAMBA_3_2_0/source/nsswitch:
.
obnox at samba.org
obnox at samba.org
Mon Oct 1 15:37:11 GMT 2007
Author: obnox
Date: 2007-10-01 15:37:10 +0000 (Mon, 01 Oct 2007)
New Revision: 25442
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25442
Log:
Make wbinfo --sequence output the sequence number if --domain
is specified.
Michael
Modified:
branches/SAMBA_3_2_0/source/nsswitch/wbinfo.c
Changeset:
Modified: branches/SAMBA_3_2_0/source/nsswitch/wbinfo.c
===================================================================
--- branches/SAMBA_3_2_0/source/nsswitch/wbinfo.c 2007-10-01 15:35:05 UTC (rev 25441)
+++ branches/SAMBA_3_2_0/source/nsswitch/wbinfo.c 2007-10-01 15:37:10 UTC (rev 25442)
@@ -423,7 +423,14 @@
/* 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);
More information about the samba-cvs
mailing list