summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-04 05:21:14 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-04 05:21:14 +0000
commit0eb9a590430c328e6ebc46ff8ab05f181921769a (patch)
tree2ad0c64738f90fdd9921436012321b7cecf35708
parent20bfde40b20f43cf8c6714ab9fb5a3fd17bc1575 (diff)
downloadsamba-0eb9a590430c328e6ebc46ff8ab05f181921769a.tar.gz
samba-0eb9a590430c328e6ebc46ff8ab05f181921769a.tar.xz
samba-0eb9a590430c328e6ebc46ff8ab05f181921769a.zip
a little hack to smbclient to support extracting NT error codes
-rw-r--r--source/client/client.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 275d03ddba2..403eea2fc99 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -275,6 +275,18 @@ static BOOL chkpath(char *path,BOOL report)
*p++ = 4;
strcpy(p,path2);
+#if 0
+ {
+ /* this little bit of code can be used to extract NT error codes.
+ Just feed a bunch of "cd foo" commands to smbclient then watch
+ in netmon (tridge) */
+ static int code=0;
+ SIVAL(outbuf, smb_rcls, code | 0xC0000000);
+ SSVAL(outbuf, smb_flg2, SVAL(outbuf, smb_flg2) | (1<<14));
+ code++;
+ }
+#endif
+
send_smb(Client,outbuf);
receive_smb(Client,inbuf,CLIENT_TIMEOUT);