summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-09-28 01:17:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:25 -0500
commitbbe3cffb4b86439cccb39471ca386ee9321239ae (patch)
treea03f5d0e5a24e7b03a199d25f24343e383fff54f
parentf3d684a48c1339a8df4fb5b8e79b194a1752bb7c (diff)
downloadsamba-bbe3cffb4b86439cccb39471ca386ee9321239ae.tar.gz
samba-bbe3cffb4b86439cccb39471ca386ee9321239ae.tar.bz2
samba-bbe3cffb4b86439cccb39471ca386ee9321239ae.zip
r18968: EWOULDBLOCK should also be mapped to STATUS_MORE_ENTRIES
(This used to be commit 27114fe1752f20c58948b34264e38db263f7a0ea)
-rw-r--r--source4/libcli/util/errormap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/util/errormap.c b/source4/libcli/util/errormap.c
index 2ff9803d39..1e90969f95 100644
--- a/source4/libcli/util/errormap.c
+++ b/source4/libcli/util/errormap.c
@@ -1262,6 +1262,10 @@ struct unix_error_map {
const struct unix_error_map unix_nt_errmap[] = {
{ EAGAIN, STATUS_MORE_ENTRIES },
{ EINTR, STATUS_MORE_ENTRIES },
+ { ENOBUFS, STATUS_MORE_ENTRIES },
+#ifdef EWOULDBLOCK
+ { EWOULDBLOCK, STATUS_MORE_ENTRIES },
+#endif
{ EINPROGRESS, NT_STATUS_MORE_PROCESSING_REQUIRED },
{ EPERM, NT_STATUS_ACCESS_DENIED },
{ EACCES, NT_STATUS_ACCESS_DENIED },
@@ -1278,7 +1282,6 @@ const struct unix_error_map unix_nt_errmap[] = {
{ ENOTSOCK, NT_STATUS_INVALID_HANDLE },
{ EFAULT, NT_STATUS_INVALID_PARAMETER },
{ EMSGSIZE, NT_STATUS_INVALID_BUFFER_SIZE },
- { ENOBUFS, STATUS_MORE_ENTRIES },
{ ENOMEM, NT_STATUS_NO_MEMORY },
{ EPIPE, NT_STATUS_CONNECTION_DISCONNECTED },
{ ECONNREFUSED, NT_STATUS_CONNECTION_REFUSED },