summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-06-17 17:07:26 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-06-17 10:22:07 +0200
commitacc95354008ff11be5e59f74481228f04869095c (patch)
tree09ee4f8a94cf7c1dd088a2c08ef895f738e230aa /source4/libcli
parent4162c7b74aa94ee77ef47f0abae058b80eca6e38 (diff)
downloadsamba-acc95354008ff11be5e59f74481228f04869095c.tar.gz
samba-acc95354008ff11be5e59f74481228f04869095c.tar.bz2
samba-acc95354008ff11be5e59f74481228f04869095c.zip
s4-errors: Import error maps from the source3/ unix -> ntstatus mapping
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
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/util/errormap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c
index a264a25950..6476426d7f 100644
--- a/source4/libcli/util/errormap.c
+++ b/source4/libcli/util/errormap.c
@@ -607,9 +607,17 @@ static const struct {
#ifdef EOPNOTSUPP
{ EOPNOTSUPP, NT_STATUS_NOT_SUPPORTED},
#endif
+ { EMLINK, NT_STATUS_TOO_MANY_LINKS },
+ { ENOSYS, NT_STATUS_NOT_SUPPORTED },
+#ifdef ELOOP
+ { ELOOP, NT_STATUS_OBJECT_PATH_NOT_FOUND },
+#endif
#ifdef ENODATA
{ ENODATA, NT_STATUS_NOT_FOUND },
#endif
+#ifdef EFTYPE
+ { EFTYPE, NT_STATUS_OBJECT_PATH_NOT_FOUND },
+#endif
#ifdef EDQUOT
{ EDQUOT, NT_STATUS_DISK_FULL }, /* Windows apps need this, not NT_STATUS_QUOTA_EXCEEDED */
#endif
@@ -652,6 +660,9 @@ static const struct {
#ifdef EAFNOSUPPORT
{ EAFNOSUPPORT, NT_STATUS_INVALID_PARAMETER_MIX },
#endif
+#ifdef ECONNABORTED
+ { ECONNABORTED, NT_STATUS_CONNECTION_ABORTED},
+#endif
#ifdef ECONNRESET
{ ECONNRESET, NT_STATUS_CONNECTION_RESET},
#endif