git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
553093c
)
a little hack to smbclient to support extracting NT error codes
author
Andrew Tridgell
<tridge@samba.org>
Sat, 4 Oct 1997 05:21:14 +0000
(
05:21
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 4 Oct 1997 05:21:14 +0000
(
05:21
+0000)
(This used to be commit
0eb9a590430c328e6ebc46ff8ab05f181921769a
)
source3/client/client.c
patch
|
blob
|
history
diff --git
a/source3/client/client.c
b/source3/client/client.c
index 275d03ddba286376086e82fc718c6e9d3f18b38f..403eea2fc99f5aaeb7b7151e0fc03fe7d3939ef1 100644
(file)
--- a/
source3/client/client.c
+++ b/
source3/client/client.c
@@
-275,6
+275,18
@@
static BOOL chkpath(char *path,BOOL report)
*p++ = 4;
strcpy(p,path2);
*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);
send_smb(Client,outbuf);
receive_smb(Client,inbuf,CLIENT_TIMEOUT);