rpcclient echo client patch

Ronan Waide waider at waider.ie
Wed Apr 23 17:36:27 GMT 2003


This makes rpcclient return an error if the data mismatches. Again,
useful for non-interactive testing.

Cheers,
Waider.

Index: rpcclient/cmd_echo.c
===================================================================
RCS file: /cvsroot/samba/source/rpcclient/cmd_echo.c,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 cmd_echo.c
--- rpcclient/cmd_echo.c        14 Apr 2003 02:08:03 -0000      1.1.2.1
+++ rpcclient/cmd_echo.c        23 Apr 2003 17:34:17 -0000
@@ -74,6 +74,7 @@
                if (in_data[i] != out_data[i]) {
                        printf("mismatch at offset %d, %d != %d\n",
                               i, in_data[i], out_data[i]);
+            result = NT_STATUS_UNSUCCESSFUL;
                }
        }

-- 
waider at waider.ie / Yes, it /is/ very personal of me.
"What is this talk of "release?"  We do not make software "releases."  Our
 software "escapes" leaving a bloody trail of designers and quality assurance
 people in its wake." - MoncriefJM at gvl.esys.com


More information about the samba-technical mailing list