summaryrefslogtreecommitdiffstats
path: root/source4/libcli/util/errormap.c
Commit message (Collapse)AuthorAgeFilesLines
* libcli/util Bring samba4 unix -> nt_status code in common.Andrew Bartlett2011-06-201-157/+0
| | | | | | | | Due to library link orders, this is already the function that is being used. However we still need to sort out the duplicate symbol issues, probably by renaming things. Andrew Bartlett
* s3-libcli Remove unused error mapping tablesAndrew Bartlett2011-06-201-549/+0
| | | | | | The functions which uesed these tables have since moved in common. Andrew Bartlett
* s4-errors: Import error maps from the source3/ unix -> ntstatus mappingAndrew Bartlett2011-06-171-0/+11
| | | | | | | | | | | We need to syncronise these mappings, as the duplication of this symobol in the build means that either may be called based only on library link orders. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Jun 17 10:22:07 CEST 2011 on sn-devel-104
* errors: reorder error codes for easier s3/s4 comparisonAndrew Bartlett2011-06-171-3/+3
|
* libcli/util Remove ntstatus_check_dos_mappingAndrew Bartlett2011-05-311-35/+0
| | | | | | | This has been set to true since the global loadparm was removed in 2008, and removes an #ifdef SAMBA_BUILD == 4 Andrew Bartlett
* s4-libcli Merge error map order with source3 errmap_unix.cAndrew Bartlett2011-05-311-26/+28
| | | | | | This makes it easier to see what the actual differences here are. Andrew Bartlett
* errors: Remove unused unix_to_werror()Andrew Bartlett2011-05-061-5/+0
|
* libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top levelAndrew Bartlett2011-05-061-668/+0
| | | | | | | This takes the Samba4 version, with the NT_STATUS_IS_DOS() check. This will be used in smbd/error.c shortly. Andrew Bartlett
* errors: Merge source3/ werror_to_ntstatus() code to source4/Andrew Bartlett2011-05-061-6/+16
|
* errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.Andrew Bartlett2011-05-061-7/+11
| | | | | | They are now identical Andrew Bartlett
* s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett2011-05-061-5/+3
| | | | | | | This also makes unix_nt_errmap private to errmap_unix.c and errormap.c so the tables themselves cannot be duplicate symbols until merged. Andrew Bartlett
* ndr: merge duplicate ndr_map_error2ntstatus() functions.Günther Deschner2011-02-081-26/+0
| | | | Guenther
* errormap: Add unix_to_werror() functionKai Blin2011-01-261-0/+6
| | | | | | | | | | | While this function technically is closest to the map_nt_status_from_unix() function, I think it is better to keep the new function in line with our usual fooerror_to_barerror() naming scheme. Signed-off-by: Kai Blin <kai@samba.org> Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Wed Jan 26 23:07:24 CET 2011 on sn-devel-104
* s4-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETEDStefan Metzmacher2010-09-101-0/+1
| | | | metze
* ѕ4: EDQUOT needs to be mapped to NT_STATUS_DISK_FULLBjörn Jacke2010-03-101-1/+1
|
* errormap: Remove wbc -> NTSTATUS error map for now. It is not used.Jelmer Vernooij2009-05-151-37/+0
| | | | | | | This was breaking the Samba 4 installation since it added dependencies on header files we weren't installing. Confirmed with Kai.
* errormap: Change the WBC_ERR_UNKNOWN_ERROR to map to NT_STATUS_UNSUCCESSFULKai Blin2009-04-231-1/+1
| | | | | This allows us to distinguish on NTSTATUS level if we got a WBC_ERR_UNKNOWN_ERROR or WBC_ERR_NSS_ERROR.
* errormap: Add wbcErr to NTSTATUS mappingsKai Blin2009-04-221-0/+37
|
* s4:errormap: map ECANCELED to NT_STATUS_CANCELLEDStefan Metzmacher2009-03-061-0/+4
| | | | metze
* Remove unused include of param/param.h.Jelmer Vernooij2008-11-021-1/+0
|
* Remove use of global_loadparm when comparing nt status error - useJelmer Vernooij2008-11-021-1/+3
| | | | global variable instead.
* Remove use of global_loadparm during initialization of gensec.Jelmer Vernooij2008-11-021-2/+2
|
* Use common error definitions.Jelmer Vernooij2008-10-231-0/+1403
|
* Move libcli-util error code to top-level.Jelmer Vernooij2008-10-231-1403/+0
|
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-0/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* r25917: ndr: move ndr_map_error2ntstatus to errormap.cStefan Metzmacher2007-12-211-0/+25
| | | | | metze (This used to be commit 8fc2e7737fc15f7265816f077e2a48a7a98f75b8)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 5c9b19271e0e3ad897499707003ce4703ffa4870)
* r23795: more v2->v3 conversionAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
* r20072: make sure WERR_ACCESS_DENIED gets mapped to NT_STATUS_ACCESS_DENIEDStefan Metzmacher2007-10-101-0/+5
| | | | | metze (This used to be commit 417f64184e734ab4ce5c78dc3d268c5c4a2cd18d)
* r18968: EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIESAndrew Tridgell2007-10-101-1/+4
| | | | (This used to be commit 27114fe1752f20c58948b34264e38db263f7a0ea)
* r18916: fixed the messaging layer on *BSD systems. When a socket was full weAndrew Tridgell2007-10-101-1/+1
| | | | | | | | | | were getting ENOBUFS, which mapped to NT_STATUS_NO_MEMORY, which in turn caused the messaging code to loop trying until it gave up. Now it correctly falls back to select. Messaging speed goes from 3 messages per second to over 7000 on my test vmware box. Not bad for a one line change :) (This used to be commit 6568f30adf980c572f9ffd6ff884336ebe652f90)
* r15794: fixed a problem with DOS status codes - found by kukks (thanks!)Andrew Tridgell2007-10-101-0/+5
| | | | (This used to be commit 1a57b16715bf8b82e8f9118c3ab401acf081d02c)
* r14876: added ENOSYS to unix error mappingAndrew Tridgell2007-10-101-0/+3
| | | | (This used to be commit 77f32a273541afcd07f6da8a26315bf21ea05c51)
* r12910: fix bug #3069Stefan Metzmacher2007-10-101-2/+5
| | | | | metze (This used to be commit 1768a698a461bfb8aeaa8f28efaab4ad300823a2)
* r11546: add more errno ntstatus mappings, to get more usefull errors from ↵Stefan Metzmacher2007-10-101-0/+15
| | | | | | | socket_wrapper metze (This used to be commit 6375a9a95da1eb2d5fd60b265047d98b264ff93f)
* r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESETStefan Metzmacher2007-10-101-0/+3
| | | | | metze (This used to be commit e753114e863ff0ea32b35ef30a6f0056cfa7c902)
* r10103: Put an #ifdef guard around ENOTSUP to fix systems that don't have itTim Potter2007-10-101-0/+2
| | | | | (OpenBSD 3.7). (This used to be commit cc24af6545b19ad7710c43399c396e1807f80eeb)
* r8125: fixed an error code mapping based on the updated torture testsAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit a3b8a00d7f67da5bc1187ce271a8df1601411dbc)
* r8111: fixed the client library to work against w2k3 with nt status codesAndrew Tridgell2007-10-101-270/+30
| | | | | | | | | | | | | | | | | | | | disabled. The main change is to turn off spnego, which cannot work at all without nt status codes (w2k3 gives a ERRHRD:ERRgeneral error when you try) I also modified NT_STATUS_EQUAL() to allow for nt->dos code equality, but only when nt status codes are disabled in smb.conf. That keeps all the existing torture code working, while still allowing us to correctly catch the cases where forced dos error codes are needed The dos->ntstatus mapping table has been removed completely, as it doesn't really make sense, is impossible to get right, and with the new dos status handling isn't needed. When matching a nt status code to a dos status code it makes far more sense to map from the nt code to the dos code and compare, rather than the reverse, as the nt->dos mapping is what windows has to do internally, so there really is a valid mapping table. (This used to be commit f21274e07b361ef40fdc0fe23e96f1c9c63a091c)
* r4757: added the ability of the clisocket level of libcli to handle asyncAndrew Tridgell2007-10-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | socket connections. This was complicated by a few factors: - it meant moving the event context from clitransport to clisocket, so lots of structures changed - we need to asynchronously handle connection to lists of port numbers, not just one port number. The code internally tries each port in the list in turn, without ever blocking - the man page on how connect() is supposed to work asynchronously doesn't work in practice (now why doesn't this surprise me?). The getsockopt() for SOL_ERROR is supposed to retrieve the error, but in fact the next (unrelated) connect() call on the same socket also gets an error, though not the right error. To work around this I need to tear down the whole socket between each attempted port. I hate posix. Note that clisocket.c still does a blocking name resolution call in smbcli_sock_connect_byname(). That will be fixed when we add the async NBT resolution code. Also note that I arranged things so that every SMB connection is now async internally, so using plain smbclient or smbtorture tests all the async features of this new code. (This used to be commit 468f8ebbfdbdf37c757fdc4863626aa9946a8870)
* r4066: add a mapping for NT_STATUS_NO_MORE_ENTRIESAndrew Tridgell2007-10-101-0/+1
| | | | (This used to be commit 335b1c6a52b2e437e7f16a84ba547e5387ef64d1)
* r4065: fixed ntstatus->dos error code for NT_STATUS_NO_SUCH_FILEAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 19efd83b863a8c94f509d6a933a7d5de43aa95e9)
* r3792: improved the posix -> nt error mapping, so we get things likeAndrew Tridgell2007-10-101-0/+12
| | | | | NT_STATUS_HOST_UNREACHABLE instead of NT_STATUS_UNSUCCESSFUL (This used to be commit f2a488e5668ab5d262269f1bab1b33a63265cbe9)
* r3545: initial support for using extended attributes to hold extended dos ↵Andrew Tridgell2007-10-101-0/+7
| | | | | | | | | | | | | | | | | | | attributes of files. I decided to use IDL/NDR to encode the attribute, as it gives us a simple way to describe and extend the saved attributes. The xattr code needs to hook into quite a few more places in the pvfs code, but this at least gets the basics done. I will start encoding alternate data streams streams, DOS EAs etc soon using the same basic mechanism. I'll probably stick to "version 1" for the xattr.idl for quite a while even though it will be changing, as I don't expect anyone to be deploying this in production just yet. Once we have production users we will need to keep compatibility by supporting all the old version numbers in xattr.idl. (This used to be commit c54253ed1b7dce1d14f43e747da61089aea87094)
* r3278: - rewrote the client side rpc connection code to use lib/socket/Andrew Tridgell2007-10-101-35/+38
| | | | | | | | | | | | | | | | | | | | rather than doing everything itself. This greatly simplifies the code, although I really don't like the socket_recv() interface (it always allocates memory for you, which means an extra memcpy in this code) - fixed several bugs in the socket_ipv4.c code, in particular client side code used a non-blocking connect but didn't handle EINPROGRESS, so it had no chance of working. Also fixed the error codes, using map_nt_error_from_unix() - cleaned up and expanded map_nt_error_from_unix() - changed interpret_addr2() to not take a mem_ctx. It makes absolutely no sense to allocate a fixed size 4 byte structure like this. Dozens of places in the code were also using interpret_addr2() incorrectly (precisely because the allocation made no sense) (This used to be commit 7f2c771b0e0e98c5c9e5cf662592d64d34ff1205)
* r3206: - added the reverse map for ERRbaduid to NT_STATUS_INVALID_HANDLEAndrew Tridgell2007-10-101-0/+1
| | | | | - force disable spnego in the RAW-CONTEXT test (it breaks the test) (This used to be commit 3f247ec21c59af92b420a3e550552b5a1f1f08e2)
* r3197: fixed error code mapping for ENOTDIRAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 2c852539ed089b584b721a31cd411667bb5669c7)