git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c70152
)
r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESET
author
Stefan Metzmacher
<metze@samba.org>
Tue, 27 Sep 2005 16:20:17 +0000
(16:20 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:39:04 +0000
(13:39 -0500)
metze
(This used to be commit
e753114e863ff0ea32b35ef30a6f0056cfa7c902
)
source4/libcli/util/errormap.c
patch
|
blob
|
history
diff --git
a/source4/libcli/util/errormap.c
b/source4/libcli/util/errormap.c
index 95fac97428f283adb5cf58bd97e2da2a2364e4f3..99154d2cb0cd00aca6e0fdec7e11c0c5491eddb8 100644
(file)
--- a/
source4/libcli/util/errormap.c
+++ b/
source4/libcli/util/errormap.c
@@
-1277,6
+1277,9
@@
const struct unix_error_map unix_nt_errmap[] = {
{ ENOMEM, NT_STATUS_NO_MEMORY },
{ EPIPE, NT_STATUS_CONNECTION_DISCONNECTED },
{ ECONNREFUSED, NT_STATUS_CONNECTION_REFUSED },
+#ifdef ECONNRESET
+ { ECONNRESET, NT_STATUS_CONNECTION_RESET },
+#endif
{ EBUSY, NT_STATUS_SHARING_VIOLATION },
#ifdef ENOTSUP
{ ENOTSUP, NT_STATUS_NOT_SUPPORTED},