summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@mozilla.com>2013-08-20 18:31:57 -0700
committerJim Blandy <jimb@mozilla.com>2013-08-20 18:31:57 -0700
commit282fa15b538f7f816662f2e801a8377a500358e3 (patch)
tree8700e1267b0a013ae3607d1f119017fd1bf92b7d
parent9eef89618c9a514dcc6b6ed2a29a7cbfd454ee34 (diff)
downloadnspr-hg-282fa15b538f7f816662f2e801a8377a500358e3.tar.gz
Bug 907512: Don't mask filesystem-related errors when using Unix domainNSPR_4_10_1_BETA2
sockets. Instead, let _MD_unix_map_default_error handle them normally. r=wtc.
-rw-r--r--pr/src/md/unix/unix_errors.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/pr/src/md/unix/unix_errors.c b/pr/src/md/unix/unix_errors.c
index f65f4fee..bcea0993 100644
--- a/pr/src/md/unix/unix_errors.c
+++ b/pr/src/md/unix/unix_errors.c
@@ -528,9 +528,6 @@ void _MD_unix_map_connect_error(int err)
PRErrorCode prError;
switch (err) {
- case EACCES:
- prError = PR_ADDRESS_NOT_SUPPORTED_ERROR;
- break;
#if defined(UNIXWARE)
/*
* On some platforms, if we connect to a port on the local host
@@ -541,12 +538,6 @@ void _MD_unix_map_connect_error(int err)
prError = PR_CONNECT_REFUSED_ERROR;
break;
#endif
- case ELOOP:
- prError = PR_ADDRESS_NOT_SUPPORTED_ERROR;
- break;
- case ENOENT:
- prError = PR_ADDRESS_NOT_SUPPORTED_ERROR;
- break;
case ENXIO:
prError = PR_IO_ERROR;
break;
@@ -565,17 +556,6 @@ void _MD_unix_map_bind_error(int err)
case EINVAL:
prError = PR_SOCKET_ADDRESS_IS_BOUND_ERROR;
break;
- /*
- * UNIX domain sockets are not supported in NSPR
- */
- case EIO:
- case EISDIR:
- case ELOOP:
- case ENOENT:
- case ENOTDIR:
- case EROFS:
- prError = PR_ADDRESS_NOT_SUPPORTED_ERROR;
- break;
default:
_MD_unix_map_default_error(err);
return;