CVS update: samba/source/libsmb

Tim Potter tpot at samba.org
Fri Aug 10 16:00:34 EST 2001


Date:	Thu Aug  9 23:00:34 2001
Author:	tpot

Update of /data/cvs/samba/source/libsmb
In directory va:/tmp/cvs-serv28290/libsmb

Modified Files:
	cliconnect.c clientgen.c clierror.c clifile.c clilist.c 
	climessage.c clirap.c clireadwrite.c clitrans.c libsmbclient.c 
	nterr.c smbencrypt.c smberr.c 
Log Message:
A rewrite of the error handling in the libsmb client code.  I've separated
out the error handling into a bunch of separate functions rather than all
being handled in one big function.

Fetch error codes from the last received packet:

    void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *num);
    uint32 cli_nt_error(struct cli_state *);

Convert errors to UNIX errno values:

    int cli_errno_from_dos(uint8 eclass, uint32 num);
    int cli_errno_from_nt(uint32 status);
    int cli_errno(struct cli_state *cli);

Detect different kinds of errors:

    BOOL cli_is_dos_error(struct cli_state *cli);
    BOOL cli_is_nt_error(struct cli_state *cli);
    BOOL cli_is_error(struct cli_state *cli);

This also means we now support CAP_STATUS32 as we can decode and understand
NT errors instead of just DOS errors.  Yay!

Ported a whole bunch of files in libsmb to use this new API instead of the
just the DOS error.


Revisions:
cliconnect.c		1.24 => 1.25
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/cliconnect.c?r1=1.24&r2=1.25
clientgen.c		1.171 => 1.172
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clientgen.c?r1=1.171&r2=1.172
clierror.c		1.9 => 1.10
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clierror.c?r1=1.9&r2=1.10
clifile.c		1.25 => 1.26
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clifile.c?r1=1.25&r2=1.26
clilist.c		1.19 => 1.20
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clilist.c?r1=1.19&r2=1.20
climessage.c		1.6 => 1.7
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/climessage.c?r1=1.6&r2=1.7
clirap.c		1.14 => 1.15
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clirap.c?r1=1.14&r2=1.15
clireadwrite.c		1.8 => 1.9
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clireadwrite.c?r1=1.8&r2=1.9
clitrans.c		1.8 => 1.9
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clitrans.c?r1=1.8&r2=1.9
libsmbclient.c		1.32 => 1.33
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/libsmbclient.c?r1=1.32&r2=1.33
nterr.c		1.14 => 1.15
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/nterr.c?r1=1.14&r2=1.15
smbencrypt.c		1.57 => 1.58
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/smbencrypt.c?r1=1.57&r2=1.58
smberr.c		1.12 => 1.13
	http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/smberr.c?r1=1.12&r2=1.13




More information about the samba-cvs mailing list