[tor-commits] [tor/master] make EACCES survivable too.

nickm at torproject.org nickm at torproject.org
Tue Feb 11 23:59:06 UTC 2014


commit e0c8031516852143fb82d8fee91a0f4c576c7418
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Feb 10 15:06:10 2014 -0500

    make EACCES survivable too.
---
 src/or/reasons.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/or/reasons.c b/src/or/reasons.c
index fc31a43..6eb2643 100644
--- a/src/or/reasons.c
+++ b/src/or/reasons.c
@@ -174,11 +174,12 @@ errno_to_stream_end_reason(int e)
     S_CASE(ENOTSOCK):
     S_CASE(EPROTONOSUPPORT):
     S_CASE(EAFNOSUPPORT):
-    E_CASE(EACCES):
     S_CASE(ENOTCONN):
       return END_STREAM_REASON_INTERNAL;
     S_CASE(ENETUNREACH):
     S_CASE(EHOSTUNREACH):
+    E_CASE(EACCES):
+    E_CASE(EPERM):
       return END_STREAM_REASON_NOROUTE;
     S_CASE(ECONNREFUSED):
       return END_STREAM_REASON_CONNECTREFUSED;





More information about the tor-commits mailing list