From c549112d4b7b283e35ac522791c0095ea6099af7 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 4 Oct 1997 05:21:14 +0000 Subject: a little hack to smbclient to support extracting NT error codes (This used to be commit 0eb9a590430c328e6ebc46ff8ab05f181921769a) --- source3/client/client.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source3/client') 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); -- cgit