summaryrefslogtreecommitdiffstats
path: root/source/libsmb/errormap.c
Commit message (Collapse)AuthorAgeFilesLines
* Move our NTLMSSP client code into ntlmssp.c. The intention is to provide aAndrew Bartlett2003-02-151-1/+1
| | | | | | | | | | relitivly useful external lib from this code, and to remove the dupicate NTLMSSP code elsewhere in samba (RPC pipes, LDAP client). The code I've replaced this with in cliconnect.c is relitivly ugly, and I hope to replace it with a more general SPENGO layer at some later date. Andrew Bartlett
* BIG patch...Andrew Bartlett2003-01-021-3/+3
| | | | | | | | | | | | | | | | This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett
* Fix write error returning EFBIG - found by Conrad.Jeremy Allison2002-12-111-0/+3
| | | | Jeremy.
* consolidate error mapping functions into a single fileSimo Sorce2002-11-101-0/+55
|
* Add my copyright (which I should have added months ago...)Andrew Bartlett2002-07-031-0/+1
|
* Make a number of the lookup tables 'const'. I'm told this assists in sharingAndrew Bartlett2002-03-231-3/+3
| | | | | | memory between users of shared libs. Andrew Bartlett
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* fixed a typo in the error map for WRONG_PASSWORDAndrew Tridgell2002-01-171-1/+1
|
* Fixup error mapping so we have only one table containing errno -> dos error ↵Jeremy Allison2002-01-161-0/+1
| | | | | | | -> NT STATUS maps. Fixes problem with disk full returning incorrect error. Jeremy.
* DOS error 31 is ERRgeneral, General Failure. This is the WERROR equivalentTim Potter2002-01-061-1/+1
| | | | to NT_STATUS_UNSUCCESSFUL according to AB's funky new error map.
* Add a comment on how this error map was derrived.Andrew Bartlett2002-01-051-0/+22
| | | | | This applies only to the NT->Dos map, I'm still trying to come up with a way to do the reverse.
* Update the NT_STATUS -> DOS error table.Andrew Bartlett2002-01-031-404/+427
| | | | | | | | | | | | | | | | | | | | This new table is rather different to the old one (see diff posted to the list for a sorted list of differences) and needs a *lot* of testing. It does however seem to line up much better with what NT is using, as exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches win2k where it didn't before. I can't see any critical errors we now get wrong, and I know that the auth errors are correct as per my on-the-wire observations. This table was produced (and I hope to comment this better later) by using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the 'name_to_ntstatus' auth module on the HEAD PDC. This module returned the username as the error, and the NT box was forced to give me a dos error becouse thats all I negotiated on that connection. Hence the map. Andrew Bartlett
* This brings the NT->DOS error mapping into better line with what NT does.Andrew Bartlett2002-01-011-2/+2
| | | | | | | I'll post the changes to the actual map to the list for comment, but this fixes the 'unknown' case. Andrew Bartlett
* NT_STATUS(0x80000005) maps to ERRDOS,234Jean-François Micouleau2001-12-101-1/+1
| | | | J.F.
* Update some of the error mapping, based on on-the-wire observations of an ↵Andrew Bartlett2001-11-231-7/+7
| | | | | | | | | NT4 server. This lets our Win9X clients give sane error messages when you get passwords wrong and the like. Andrew Bartlett
* Added constants and error message for dos error code 1326 (logon failure).Tim Potter2001-11-231-1/+1
|
* more NTSTATUS/WERROR conversionAndrew Tridgell2001-09-031-0/+584
|
* use a name not a number for ERRinsufficientbufferAndrew Tridgell2001-09-011-1/+1
|
* converted another bunch of stuff to NTSTATUSAndrew Tridgell2001-08-271-1/+1
|
* started converting NTSTATUS to be a structure on systems with gcc in order ↵Andrew Tridgell2001-08-271-0/+854
to make it type incompatible with BOOL so we catch errors sooner. This has already found a number of bugs