summaryrefslogtreecommitdiff
path: root/source4/libcli/util/errormap.c
AgeCommit message (Collapse)AuthorFilesLines
2011-06-20libcli/util Bring samba4 unix -> nt_status code in common.Andrew Bartlett1-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
2011-06-20s3-libcli Remove unused error mapping tablesAndrew Bartlett1-549/+0
The functions which uesed these tables have since moved in common. Andrew Bartlett
2011-06-17s4-errors: Import error maps from the source3/ unix -> ntstatus mappingAndrew Bartlett1-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
2011-06-17errors: reorder error codes for easier s3/s4 comparisonAndrew Bartlett1-3/+3
2011-05-31libcli/util Remove ntstatus_check_dos_mappingAndrew Bartlett1-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
2011-05-31s4-libcli Merge error map order with source3 errmap_unix.cAndrew Bartlett1-26/+28
This makes it easier to see what the actual differences here are. Andrew Bartlett
2011-05-06errors: Remove unused unix_to_werror()Andrew Bartlett1-5/+0
2011-05-06libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top levelAndrew Bartlett1-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
2011-05-06errors: Merge source3/ werror_to_ntstatus() code to source4/Andrew Bartlett1-6/+16
2011-05-06errors: Merge ntstatus -> DOS error table between Samba3 and Samba4.Andrew Bartlett1-7/+11
They are now identical Andrew Bartlett
2011-05-06s3-lib Remove unused dos error codes from errmap_unixAndrew Bartlett1-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
2011-02-08ndr: merge duplicate ndr_map_error2ntstatus() functions.Günther Deschner1-26/+0
Guenther
2011-01-26errormap: Add unix_to_werror() functionKai Blin1-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
2010-09-10s4-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETEDStefan Metzmacher1-0/+1
metze
2010-03-10ѕ4: EDQUOT needs to be mapped to NT_STATUS_DISK_FULLBjörn Jacke1-1/+1
2009-05-15errormap: Remove wbc -> NTSTATUS error map for now. It is not used.Jelmer Vernooij1-37/+0
This was breaking the Samba 4 installation since it added dependencies on header files we weren't installing. Confirmed with Kai.
2009-04-23errormap: Change the WBC_ERR_UNKNOWN_ERROR to map to NT_STATUS_UNSUCCESSFULKai Blin1-1/+1
This allows us to distinguish on NTSTATUS level if we got a WBC_ERR_UNKNOWN_ERROR or WBC_ERR_NSS_ERROR.
2009-04-22errormap: Add wbcErr to NTSTATUS mappingsKai Blin1-0/+37
2009-03-06s4:errormap: map ECANCELED to NT_STATUS_CANCELLEDStefan Metzmacher1-0/+4
metze
2008-11-02Remove unused include of param/param.h.Jelmer Vernooij1-1/+0
2008-11-02Remove use of global_loadparm when comparing nt status error - useJelmer Vernooij1-1/+3
global variable instead.
2008-11-02Remove use of global_loadparm during initialization of gensec.Jelmer Vernooij1-2/+2
2008-10-23Use common error definitions.Jelmer Vernooij1-0/+1403
2008-10-23Move libcli-util error code to top-level.Jelmer Vernooij1-1403/+0
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-0/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2007-12-21r25917: ndr: move ndr_map_error2ntstatus to errormap.cStefan Metzmacher1-0/+25
metze (This used to be commit 8fc2e7737fc15f7265816f077e2a48a7a98f75b8)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-1/+1
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij1-1/+1
(This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
2007-10-10r25026: Move param/param.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 5c9b19271e0e3ad897499707003ce4703ffa4870)
2007-10-10r23795: more v2->v3 conversionAndrew Tridgell1-1/+1
(This used to be commit 84b468b2f8f2dffda89593f816e8bc6a8b6d42ac)
2007-10-10r20072: make sure WERR_ACCESS_DENIED gets mapped to NT_STATUS_ACCESS_DENIEDStefan Metzmacher1-0/+5
metze (This used to be commit 417f64184e734ab4ce5c78dc3d268c5c4a2cd18d)
2007-10-10r18968: EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIESAndrew Tridgell1-1/+4
(This used to be commit 27114fe1752f20c58948b34264e38db263f7a0ea)
2007-10-10r18916: fixed the messaging layer on *BSD systems. When a socket was full weAndrew Tridgell1-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)
2007-10-10r15794: fixed a problem with DOS status codes - found by kukks (thanks!)Andrew Tridgell1-0/+5
(This used to be commit 1a57b16715bf8b82e8f9118c3ab401acf081d02c)
2007-10-10r14876: added ENOSYS to unix error mappingAndrew Tridgell1-0/+3
(This used to be commit 77f32a273541afcd07f6da8a26315bf21ea05c51)
2007-10-10r12910: fix bug #3069Stefan Metzmacher1-2/+5
metze (This used to be commit 1768a698a461bfb8aeaa8f28efaab4ad300823a2)
2007-10-10r11546: add more errno ntstatus mappings, to get more usefull errors from ↵Stefan Metzmacher1-0/+15
socket_wrapper metze (This used to be commit 6375a9a95da1eb2d5fd60b265047d98b264ff93f)
2007-10-10r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESETStefan Metzmacher1-0/+3
metze (This used to be commit e753114e863ff0ea32b35ef30a6f0056cfa7c902)
2007-10-10r10103: Put an #ifdef guard around ENOTSUP to fix systems that don't have itTim Potter1-0/+2
(OpenBSD 3.7). (This used to be commit cc24af6545b19ad7710c43399c396e1807f80eeb)
2007-10-10r8125: fixed an error code mapping based on the updated torture testsAndrew Tridgell1-1/+1
(This used to be commit a3b8a00d7f67da5bc1187ce271a8df1601411dbc)
2007-10-10r8111: fixed the client library to work against w2k3 with nt status codesAndrew Tridgell1-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)
2007-10-10r4757: added the ability of the clisocket level of libcli to handle asyncAndrew Tridgell1-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)
2007-10-10r4066: add a mapping for NT_STATUS_NO_MORE_ENTRIESAndrew Tridgell1-0/+1
(This used to be commit 335b1c6a52b2e437e7f16a84ba547e5387ef64d1)
2007-10-10r4065: fixed ntstatus->dos error code for NT_STATUS_NO_SUCH_FILEAndrew Tridgell1-1/+1
(This used to be commit 19efd83b863a8c94f509d6a933a7d5de43aa95e9)
2007-10-10r3792: improved the posix -> nt error mapping, so we get things likeAndrew Tridgell1-0/+12
NT_STATUS_HOST_UNREACHABLE instead of NT_STATUS_UNSUCCESSFUL (This used to be commit f2a488e5668ab5d262269f1bab1b33a63265cbe9)
2007-10-10r3545: initial support for using extended attributes to hold extended dos ↵Andrew Tridgell1-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)
2007-10-10r3278: - rewrote the client side rpc connection code to use lib/socket/Andrew Tridgell1-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)
2007-10-10r3206: - added the reverse map for ERRbaduid to NT_STATUS_INVALID_HANDLEAndrew Tridgell1-0/+1
- force disable spnego in the RAW-CONTEXT test (it breaks the test) (This used to be commit 3f247ec21c59af92b420a3e550552b5a1f1f08e2)
2007-10-10r3197: fixed error code mapping for ENOTDIRAndrew Tridgell1-1/+1
(This used to be commit 2c852539ed089b584b721a31cd411667bb5669c7)