Jeremy Allison
fe542fc170
Add error map of STATUS_INVALID_EA_NAME -> ERRDOS, ERRbadfile
...
(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>
2013-07-19 17:52:41 +10:00
Günther Deschner
fdf9474759
doserr: add mapping for WERR_PRINT_PROCESSOR_ALREADY_INSTALLED.
...
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2013-05-20 18:50:01 +02:00
Björn Jacke
db075b0202
libcli: fix value of NT_STATUS_FILE_NOT_AVAILABLE
...
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Wed Aug 22 01:30:06 CEST 2012 on sn-devel-104
2012-08-22 01:30:06 +02:00
Stefan Metzmacher
83a746d7f5
libcli/util: add NT_STATUS_FILE_NOT_AVAILABLE
...
metze
2012-08-07 11:16:36 +02:00
Stefan Metzmacher
f6fb55aeae
libcli/util: fix typo in nt_errs[] for NT_STATUS_NETWORK_SESSION_EXPIRED
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jan 29 14:11:12 CET 2012 on sn-devel-104
2012-01-29 14:11:12 +01:00
David Disseldorp
af6bf7714d
lib: use differing NTSTATUS and WERROR struct members
...
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)) {
2012-01-23 12:18:20 -08:00
Volker Lendecke
d4e834ec6c
lib: Fix NT_STATUS_ALL_SIDS_FILTERED definition
...
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
2011-12-23 23:19:17 +01:00
Stefan Metzmacher
23a034335c
libcli/util: add NT_STATUS_NETWORK_SESSION_EXPIRED and 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
2011-12-17 14:24:40 +01:00
Amitay Isaacs
51855de633
werror: Added missing DNS error codes
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-10-20 05:53:05 +02:00
Kai Blin
df88e66250
errormap: Add unix_to_werror() function
...
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>
2011-09-28 02:02:35 +02:00
Michael Adam
a3538b92d3
werror: remove duplicate definition of WERR_INVALID_OWNER
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Aug 26 01:23:52 CEST 2011 on sn-devel-104
2011-08-26 01:23:52 +02:00
Björn Baumbach
6db705d6fc
libcli: remove duplicate of #define NT_STATUS_NO_SUCH_JOB
...
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
2011-07-07 20:29:13 +02:00
Volker Lendecke
61d0afeab3
s3: Add STATUS_STOPPED_ON_SYMLINK error code
2011-07-03 11:31:28 +02:00
Volker Lendecke
21b30d52f5
Add NT_STATUS_IO_REPARSE_TAG_NOT_HANDLED
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jun 24 22:36:50 CEST 2011 on sn-devel-104
2011-06-24 22:36:50 +02:00
Volker Lendecke
61ad606016
Add NT_STATUS_IO_REPARSE_DATA_INVALID
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jun 24 17:58:00 CEST 2011 on sn-devel-104
2011-06-24 17:58:00 +02:00
Andrew Bartlett
5db74b9607
lib/util Remove samba-util-common!
...
All of this code is now in common, so we don't need the second
'-common' library any more!
Andrew Bartlett
2011-06-21 09:36:22 +10:00
Andrew Bartlett
a1f04e8abc
libcli/util Rename common map_nt_error_from_unix to avoid duplicate symbol
...
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
2011-06-20 08:12:03 +02:00
Andrew Bartlett
018f4a5889
libcli/util Bring samba4 unix -> nt_status code in common.
...
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-20 14:36:06 +10:00
Andrew Tridgell
b341979adb
util: moved nt_errstr() into common code
...
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>
2011-06-17 17:08:59 +10:00
Andrew Bartlett
1233ba7bf3
libclu/util: Move get_friendly_nt_error_msg() in common.
...
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-17 17:08:59 +10:00
Andrew Bartlett
6bf88222cc
libcli/util Remove prototype for ntstatus_dos_equal()
...
This was removed recently.
2011-06-06 15:02:38 +10:00
Andrew Bartlett
c004a932c4
libcli/util Remove ntstatus_check_dos_mapping
...
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-31 15:10:20 +10:00
Andrew Bartlett
cad704e836
errors: Remove unused unix_to_werror()
2011-05-06 07:51:24 +02:00
Andrew Bartlett
db74cad1c6
libcli/util Move NTSTATUS table to the top level
2011-05-06 07:51:24 +02:00
Andrew Bartlett
344eb08ee4
nterr: Add mem_ctx for return string from get_nt_error_c_code()
...
It is clearer to avoid the implicit return on talloc_tos()
Andrew Bartlett
2011-05-06 07:51:24 +02:00
Andrew Bartlett
f1ec28827f
libcli/util Merge ntstatus_to_dos() ntstatus_to_werror() to the top level
...
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-06 07:51:24 +02:00
Stefan Metzmacher
aae1f86952
libcli/util/ntstatus: NO_S4U_PROT_SUPPORT and CROSSREALM_DELEGATION_FAILURE
...
metze
2011-05-02 13:58:22 +02:00
Andrew Bartlett
f96793142d
build: put doserr.c into it's own subsystem, so it's no longer a duplicate
...
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Apr 29 10:00:32 CEST 2011 on sn-devel-104
2011-04-29 10:00:32 +02:00
Jelmer Vernooij
fa387825e2
libcli/: Fix prototypes for all functions.
2011-03-19 03:20:05 +01:00
Volker Lendecke
be3e851fea
Fix some nonempty blank lines
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Mar 5 15:16:02 CET 2011 on sn-devel-104
2011-03-05 15:16:02 +01:00
Stefan Metzmacher
24acddf806
libcli/util: add NT_STATUS_RPC_SEC_PKG_ERROR define
...
metze
2011-01-30 17:36:20 +01:00
Kai Blin
278c6f8fc5
errormap: Add unix_to_werror() function
...
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
2011-01-26 23:07:24 +01:00
Andrew Tridgell
9a744c634f
s4-doserr: telling our users to "see Windows help" doesn't seem right
2010-11-17 23:55:39 +11:00
Kai Blin
eeac222398
s4 dns: Import DNS win32 error codes from MS-ERREF
2010-10-23 10:17:05 +00:00
Stefan Metzmacher
72a8966499
libcli/util: add pipe related NT_STATUS_RPC_* codes
...
metze
2010-10-18 14:50:21 +02:00
Stefan Metzmacher
e628bf1081
libcli/util: let tstream_read_pdu_blob_* cope with variable length headers
...
metze
2010-09-26 06:45:38 +02:00
Kamen Mazdrashki
1fac1f0d28
werror: Add W_ERROR_HAVE_NO_MEMORY_AND_FREE() macro
2010-09-18 15:09:46 +03:00
Matthias Dieter Wallnöfer
5c33ef2758
s3/s4:libcli/tstream - add more "char *" casts in order to suppress Solaris warnings
2010-09-10 22:45:49 +02:00
Matthias Dieter Wallnöfer
7ffae93762
werror.h - fix order and duplicate DS error codes
2010-08-14 19:41:46 +02:00
Günther Deschner
e7cc45cb14
error_codes: fix NT_STATUS_RPC_UNKNOWN_IF typo.
...
Metze, please check.
Guenther
2010-03-19 09:30:36 +01:00
Stefan Metzmacher
6a1f8e67eb
libcli/util: add more NT_STATUS_RPC_* defines
...
metze
2010-03-18 14:25:57 +01:00
Andreas Schneider
975a7a3d1b
tstream: Added a typedef for the function prototype.
2010-02-23 13:48:22 +01:00
Matthias Dieter Wallnöfer
dfd93fc7e3
s4:libcli/util/tstream.c - Need to include "system/network.h"
...
Otherwise I don't get "struct iovec" through "<sys/uio.h>" on CentOS 4.
2010-01-29 20:01:34 +01:00
Stefan Metzmacher
bbaec01b37
libcli/util: add tstream_read_pdu_blob_send/recv
...
This will take the some full_request callback function
as the Samba4 packet code.
metze
2010-01-08 14:36:43 +01:00
Andrew Tridgell
6eb262f0e8
libcli: allow ntstatus.h to be used by openchange
...
apparently ntstatus.h is used by openchange, but they don't include
replace.h. This makes that possible again.
2009-11-25 15:30:20 +11:00
Andrew Tridgell
b6a1beb131
added NT_STATUS_NOT_OK_RETURN_AND_FREE()
...
Try to make it a bit easier to avoid leaks in common code
2009-10-17 13:01:02 +11:00
Kamen Mazdrashki
1f2490e7d8
w32err: Importing auto-generated Win32 errors and descriptions
...
Error codes and their descriptions are generated
using w32err_code.py script.
Error are downloaded from MS site:
http://msdn.microsoft.com/en-us/library/cc231199%28PROT.10%29.aspx
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-09-30 15:48:41 +03:00
Kamen Mazdrashki
0e1840b84a
w32err: WERR_GROUP_NOT_FOUND renamed to WERR_GROUPNOTFOUND
...
In Win 32 we have
NERR_GroupNotFound which maps to WERR_GROUP_NOT_FOUND currently
and we have
ERROR_GROUP_NOT_FOUND which maps to nothing, so it is to be added
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-09-30 15:48:41 +03:00
Kamen Mazdrashki
948cd70bad
w32err: WERR_USER_EXISTS replace with WERR_USEREXISTS name
...
In Win32 we have
NERR_UserExists which maps to WERR_USER_EXISTS currently
and there is
ERROR_USER_EXISTS which maps to WERR_USER_ALREADY_EXISTS
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-09-30 15:48:40 +03:00
Kamen Mazdrashki
d9994a604b
w32err: WERR_DC_NOT_FOUND replaced with WERR_DCNOTFOUND
...
It turns out in win32 ERROR_DC_NOT_FOUND exists and it is
an error for Device Context (DC), not Domain Controller
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-09-30 15:48:40 +03:00
Kamen Mazdrashki
0e64fcb18f
w32err: FRS_ group of errors replaced with numeric values
...
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-09-30 15:48:40 +03:00
Kamen Mazdrashki
e669113900
w32err: WERR_DOMAIN_CONTROLLER_NOT_FOUND error value fixed
...
Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
2009-09-30 15:48:40 +03:00
Andrew Tridgell
7326b8f63e
util: use likely/unlikely for NT_STATUS_* macros
2009-09-17 15:19:26 -07:00
Kamen Mazdrashki
8bebce45d3
w32err: Set hex format values for all errors
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-09-17 07:18:46 +02:00
Kamen Mazdrashki
3f835eb947
w32err: Re-define errors with numeric values
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-09-17 07:18:41 +02:00
Kamen Mazdrashki
91d3d3c6a2
w32err: Sorting error codes in ascending order
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-09-17 07:18:36 +02:00
Kamen Mazdrashki
fc1ac736d6
w32err: NERR_ codes grouped together
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-09-17 07:18:31 +02:00
Kamen Mazdrashki
1cfac63fa4
w32err: WERR_CLASS_NOT_REGISTERED updated
...
Error code move to COM/OLE group.
Error value changed to as REGDB_E_CLASSNOTREG in Windows
Signed-off-by: Günther Deschner <gd@samba.org>
2009-09-17 07:18:29 +02:00
Günther Deschner
cac5e64c00
s3-errors: add NT_STATUS_RPC_NT_PROCNUM_OUT_OF_RANGE.
...
Guenther
2009-09-11 02:58:34 +02:00
Günther Deschner
5f2ec4b202
s3-nterr: add NT_STATUS_RPC_NT_CALL_FAILED.
...
Guenther
2009-09-08 23:21:14 +02:00
Matthias Dieter Wallnöfer
a08bffa358
Adds new error codes (needed for enhancing error messages for SAMBA 4 AD LDAP server)
2009-07-31 17:40:46 +02:00
Günther Deschner
a45ec4db73
doserrors: print out some more werrors.
...
Guenther
2009-07-02 22:00:41 +02:00
Andrew Tridgell
ddce3b5ac8
two more NT status codes that we get on DRS with w2k8-R2
2009-06-12 12:23:46 +10:00
Andrew Tridgell
da3ee27900
add NT_STATUS_HAVE_NO_MEMORY_AND_FREE()
...
In many places we use NT_STATUS_HAVE_NO_MEMORY() to auto-return when a
memory allocation fails. In quite a few places where we use this, we
end up leaving a tmp_ctx behind, which creates a memory leak.
This macro takes a memory context to free when returning the error
2009-06-04 14:10:10 +10:00
Jelmer Vernooij
88876ac571
errormap: Remove wbc -> NTSTATUS error map for now. It is not used.
...
This was breaking the Samba 4 installation since it added dependencies
on header files we weren't installing.
Confirmed with Kai.
2009-05-15 16:05:37 +02:00
Günther Deschner
aa84ca6e6b
error-codes: add some more WERRORs to table.
...
These tables really should be auto-generated at some point...
Guenther
2009-05-12 23:52:43 +02:00
Günther Deschner
e7a8577df1
error-codes: add some more group specific windows error codes.
...
Guenther
2009-05-05 21:10:02 +02:00
Kai Blin
7a9be21916
errormap: Add wbcErr to NTSTATUS mappings
2009-04-22 00:14:45 +02:00
Günther Deschner
43eb50655e
error-codes: add WERR_CM_INVALID_POINTER.
...
Guenther
2009-04-10 01:06:55 +02:00
Günther Deschner
cc98d3ae9f
error-codes: add some service related error codes.
...
Patch initially from: Danny Tylman <danny.tylman@insightix.com>
Guenther
2009-04-08 21:54:28 +02:00
Zach Loafman
9d95f8704d
s/NT_STATUS_WIN7_INVALID_RANGE/NT_STATUS_INVALID_LOCK_RANGE/g
2009-04-01 20:59:52 -07:00
Günther Deschner
5603c0f2ba
error-codes: add WERR_DS_DRA_SOURCE_DISABLED.
...
Guenther
2009-03-26 14:52:22 +01:00
Günther Deschner
db728c1ade
error-codes: add WERR_DEVICE_NOT_CONNECTED.
...
Guenther
2009-03-02 14:24:57 +01:00
Michael Adam
51795b723e
libcli/util/werror.h: add macro W_ERROR_NOT_OK_GOTO(x, y)
...
a goto destination can be specified as a second parameter.
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
6c197ffa30
s3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to libcli/util/werror.h
...
Michael
2009-02-26 13:22:54 +01:00
Günther Deschner
28fb708ba0
error-codes: print out WERR_UNKNOWN_PRINT_MONITOR.
...
Guenther
2009-02-24 23:57:52 +01:00
Günther Deschner
1a9bb33a7d
error-codes: add WERR_INVALID_USER_BUFFER.
...
Guenther
2009-02-24 01:01:57 +01:00
Zack Kirsch
4e1a4cbe1f
s4 torture: Smbtorture additions for Windows BRL
...
- Adds a few new BRL tests to RAW-LOCK
- Adds a "win7" target to allow torture to handle protocol changes in
windows 7
2009-02-11 12:23:52 -08:00
Günther Deschner
aa6af1fe26
errors: add WERR_CM_BUFFER_SMALL.
...
Guenther
2008-11-12 10:17:46 +01:00
Günther Deschner
0474c8665d
nterrors: add NT_STATUS_DS_BUSY.
...
Guenther
2008-11-10 21:46:24 +01:00
Günther Deschner
0be668f147
doserr: add WERR_NO_TRUST_SAM_ACCOUNT.
...
Guenther
2008-11-06 13:40:47 +01:00
Jelmer Vernooij
62c57cb400
Remove use of global_loadparm when comparing nt status error - use
...
global variable instead.
2008-11-02 17:11:20 +01:00
Jelmer Vernooij
7ec720af71
Use shared doserr.c.
2008-11-01 17:28:16 +01:00
Tim Prouty
0b68762af7
Fix "parameter has incomplete type" build warning.
...
When libcli-util was moved to the top level
(3be0f6ea56
) it introduced a build
warning. Since ndr_map_error2ntstatus depends on the definition of
enum ndr_err_code and libndr.h can't be easily included in error.h, I
moved the definition of enum ndr_err_code to libndr.h.
This also eliminates the need for the duplicate definition in proto.h
2008-10-23 12:21:44 -07:00
Jelmer Vernooij
44b728958a
Use common error definitions.
2008-10-23 15:35:21 +02:00
Jelmer Vernooij
94c522b1ab
Import NTSTATUS defines from Samba 3.
2008-10-23 03:29:20 +02:00
Jelmer Vernooij
e56dff3f7b
Import WERROR defines from Samba 3.
2008-10-23 03:25:00 +02:00
Jelmer Vernooij
90bfd9d9e1
Import new DOS error codes from Samba 3.
2008-10-23 03:13:08 +02:00
Jelmer Vernooij
3be0f6ea56
Move libcli-util error code to top-level.
2008-10-23 03:11:19 +02:00