diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-04 05:21:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-04 05:21:14 +0000 |
commit | c549112d4b7b283e35ac522791c0095ea6099af7 (patch) | |
tree | b2d96abcbc35cac2c24c7c853034628131c17896 /source3/client | |
parent | 553093c344a4de519b7b267ac38493fe76319b51 (diff) | |
download | samba-c549112d4b7b283e35ac522791c0095ea6099af7.tar.gz samba-c549112d4b7b283e35ac522791c0095ea6099af7.tar.bz2 samba-c549112d4b7b283e35ac522791c0095ea6099af7.zip |
a little hack to smbclient to support extracting NT error codes
(This used to be commit 0eb9a590430c328e6ebc46ff8ab05f181921769a)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 275d03ddba..403eea2fc9 100644 --- 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); +#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); |