From 5880f79f4f314b875d8cb2b72562f6cdf716ba67 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 27 Sep 2005 16:20:17 +0000 Subject: r10545: map ECONNRESET to NT_STATUS_CONNECTION_RESET metze (This used to be commit e753114e863ff0ea32b35ef30a6f0056cfa7c902) --- source4/libcli/util/errormap.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c index 95fac97428..99154d2cb0 100644 --- 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}, -- cgit