summaryrefslogtreecommitdiffstats
path: root/libcli/util
Commit message (Collapse)AuthorAgeFilesLines
* Add error codes and message descriptions for NTSTATUSNoel Power2014-04-022-0/+4238
| | | | | | | | | | | Error codes and descriptions were autogenerated from [MS-ERREF] see http://msdn.microsoft.com/en-us/library/cc704588.aspx Additionally some missing error descriptions for existing errors were identified and generated. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Use correct error code value for NT_STATUS_RPC_ENUM_VALUE_OUT_OF_RANGENoel Power2014-04-021-1/+1
| | | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* Add autogenerated HRESULT error codes and descriptions from MS_ERREFNoel Power2014-04-023-2/+14741
| | | | | | | | | | | | error codes & string descriptions are generated from http://msdn.microsoft.com/en-us/library/cc704587.aspx, additionally there is a function to return the error description from the error code, this function will also try to determine the error description associated with a W_ERROR code translated as a HRESULT. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* libcli: Add warning about flow control changing macros in ntstatus.hAndrew Bartlett2014-03-051-0/+8
| | | | | | Change-Id: I49fec82e55b6bc59d5c0f157df90005f7d891c66 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* CVE-2013-4408:libcli/util: add some size verification to ↵Stefan Metzmacher2013-12-091-0/+5
| | | | | | | | | tstream_read_pdu_blob_done() Bug: https://bugzilla.samba.org/show_bug.cgi?id=10185 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Add error map of STATUS_INVALID_EA_NAME -> ERRDOS, ERRbadfileJeremy Allison2013-07-191-0/+1
| | | | | | | | | | (from Windows2012 tests). Bug 9992 - Windows error 0x800700FE when copying files with xattr names containing ":" Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* doserr: add mapping for WERR_PRINT_PROCESSOR_ALREADY_INSTALLED.Günther Deschner2013-05-201-0/+1
| | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* libcli: fix value of NT_STATUS_FILE_NOT_AVAILABLEBjörn Jacke2012-08-221-1/+1
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Aug 22 01:30:06 CEST 2012 on sn-devel-104
* libcli/util: add NT_STATUS_FILE_NOT_AVAILABLEStefan Metzmacher2012-08-072-0/+2
| | | | metze
* libcli/util: fix typo in nt_errs[] for NT_STATUS_NETWORK_SESSION_EXPIREDStefan Metzmacher2012-01-291-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Jan 29 14:11:12 CET 2012 on sn-devel-104
* lib: use differing NTSTATUS and WERROR struct membersDavid Disseldorp2012-01-231-2/+2
| | | | | | | | | | | This allows the compiler to catch uses of incorrectly typed arguments for [NT_STATUS|W_ERROR]_IS_OK() and [NT_STATUS|W_ERROR]_EQUAL(). I.e. WERROR werr; werr = my_fn(); /* XXX returns WERROR type */ if (NT_STATUS_EQUAL(werr, NT_STATUS_OBJECT_NAME_COLLISION)) {
* lib: Fix NT_STATUS_ALL_SIDS_FILTERED definitionVolker Lendecke2011-12-231-1/+1
| | | | | | | | | This seems to be more in line with all the other NT_STATUS definitions. Metze, please check. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 23 23:19:17 CET 2011 on sn-devel-104
* libcli/util: add NT_STATUS_NETWORK_SESSION_EXPIRED and ↵Stefan Metzmacher2011-12-172-0/+4
| | | | | | | | | NT_STATUS_ALL_SIDS_FILTERED metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Dec 17 14:24:40 CET 2011 on sn-devel-104
* werror: Added missing DNS error codesAmitay Isaacs2011-10-201-0/+36
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* errormap: Add unix_to_werror() functionKai Blin2011-09-282-0/+10
| | | | | | | | 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>
* werror: remove duplicate definition of WERR_INVALID_OWNERMichael Adam2011-08-261-1/+0
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Aug 26 01:23:52 CEST 2011 on sn-devel-104
* libcli: remove duplicate of #define NT_STATUS_NO_SUCH_JOBBjörn Baumbach2011-07-071-1/+0
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jul 7 20:29:13 CEST 2011 on sn-devel-104
* s3: Add STATUS_STOPPED_ON_SYMLINK error codeVolker Lendecke2011-07-032-0/+2
|
* Add NT_STATUS_IO_REPARSE_TAG_NOT_HANDLEDVolker Lendecke2011-06-242-0/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Jun 24 22:36:50 CEST 2011 on sn-devel-104
* Add NT_STATUS_IO_REPARSE_DATA_INVALIDVolker Lendecke2011-06-242-0/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Jun 24 17:58:00 CEST 2011 on sn-devel-104
* lib/util Remove samba-util-common!Andrew Bartlett2011-06-211-1/+1
| | | | | | | All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
* libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbolAndrew Bartlett2011-06-203-3/+3
| | | | | | | | | | | | The two error tables need to be combined, but for now seperate the names. (As the common parts of the tree now use the _common function, errmap_unix.c must be included in the s3 autoconf build). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Jun 20 08:12:03 CEST 2011 on sn-devel-104
* libcli/util Bring samba4 unix -> nt_status code in common.Andrew Bartlett2011-06-202-4/+164
| | | | | | | | 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
* util: moved nt_errstr() into common codeAndrew Tridgell2011-06-172-8/+23
| | | | | | | | | this brings nt_errstr() into common code, using the new talloc_stackframe_exists() to ensure that we only allocate an error string using talloc_tos() if a talloc stackframe does currently exists. This makes it safe to use in external libraries Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libclu/util: Move get_friendly_nt_error_msg() in common.Andrew Bartlett2011-06-172-0/+52
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* libcli/util Remove prototype for ntstatus_dos_equal()Andrew Bartlett2011-06-061-3/+0
| | | | This was removed recently.
* libcli/util Remove ntstatus_check_dos_mappingAndrew Bartlett2011-05-311-9/+0
| | | | | | | This has been set to true since the global loadparm was removed in 2008, and removes an #ifdef SAMBA_BUILD == 4 Andrew Bartlett
* errors: Remove unused unix_to_werror()Andrew Bartlett2011-05-061-5/+0
|
* libcli/util Move NTSTATUS table to the top levelAndrew Bartlett2011-05-063-1/+915
|
* nterr: Add mem_ctx for return string from get_nt_error_c_code()Andrew Bartlett2011-05-061-1/+1
| | | | | | It is clearer to avoid the implicit return on talloc_tos() Andrew Bartlett
* libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top levelAndrew Bartlett2011-05-062-1/+1241
| | | | | | | This takes the Samba4 version, with the NT_STATUS_IS_DOS() check. This will be used in smbd/error.c shortly. Andrew Bartlett
* libcli/util/ntstatus: NO_S4U_PROT_SUPPORT and CROSSREALM_DELEGATION_FAILUREStefan Metzmacher2011-05-021-0/+2
| | | | metze
* build: put doserr.c into it's own subsystem, so it's no longer a duplicateAndrew Bartlett2011-04-291-0/+8
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 29 10:00:32 CEST 2011 on sn-devel-104
* libcli/: Fix prototypes for all functions.Jelmer Vernooij2011-03-191-0/+2
|
* Fix some nonempty blank linesVolker Lendecke2011-03-051-3/+3
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Mar 5 15:16:02 CET 2011 on sn-devel-104
* libcli/util: add NT_STATUS_RPC_SEC_PKG_ERROR defineStefan Metzmacher2011-01-301-0/+1
| | | | metze
* errormap: Add unix_to_werror() functionKai Blin2011-01-261-0/+5
| | | | | | | | | | | 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-doserr: telling our users to "see Windows help" doesn't seem rightAndrew Tridgell2010-11-171-4/+4
|
* s4 dns: Import DNS win32 error codes from MS-ERREFKai Blin2010-10-232-0/+282
|
* libcli/util: add pipe related NT_STATUS_RPC_* codesStefan Metzmacher2010-10-181-0/+6
| | | | metze
* libcli/util: let tstream_read_pdu_blob_* cope with variable length headersStefan Metzmacher2010-09-261-5/+13
| | | | metze
* werror: Add W_ERROR_HAVE_NO_MEMORY_AND_FREE() macroKamen Mazdrashki2010-09-181-0/+7
|
* s3/s4:libcli/tstream - add more "char *" casts in order to suppress Solaris ↵Matthias Dieter Wallnöfer2010-09-101-2/+2
| | | | warnings
* werror.h - fix order and duplicate DS error codesMatthias Dieter Wallnöfer2010-08-142-62/+54
|
* error_codes: fix NT_STATUS_RPC_UNKNOWN_IF typo.Günther Deschner2010-03-191-1/+1
| | | | | | Metze, please check. Guenther
* libcli/util: add more NT_STATUS_RPC_* definesStefan Metzmacher2010-03-181-4/+11
| | | | metze
* tstream: Added a typedef for the function prototype.Andreas Schneider2010-02-232-9/+19
|
* s4:libcli/util/tstream.c - Need to include "system/network.h"Matthias Dieter Wallnöfer2010-01-291-0/+1
| | | | Otherwise I don't get "struct iovec" through "<sys/uio.h>" on CentOS 4.
* libcli/util: add tstream_read_pdu_blob_send/recvStefan Metzmacher2010-01-082-0/+246
| | | | | | | This will take the some full_request callback function as the Samba4 packet code. metze
* libcli: allow ntstatus.h to be used by openchangeAndrew Tridgell2009-11-251-0/+8
| | | | | apparently ntstatus.h is used by openchange, but they don't include replace.h. This makes that possible again.