Re: Unix platforms shouldn't mask errors specific to Unix domain sockets
Jim Blandy <[email protected]> Thu, 15 Aug 2013 23:39:39 -0700
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
On 08/15/2013 05:12 PM, Jim Blandy wrote: > The socket manipulation functions in NSPR use errno-to-PR_FOO_ERROR > mapping functions that map errno codes for filesystem-related errors > (EACCESS; ENOENT; etc.) all to PR_ADDRESS_NOT_SUPPORTED. According to > CVS annotate, this code has been present since revision 1.1 (March 1998). Apparently this issue has come up before: https://bugzilla.mozilla.org/show_bug.cgi?id=270784#c4 WTC wrote: "I think EACCES in this scenario should be mapped to PR_NO_ACCESS_RIGHTS_ERROR (the default mapping) rather than PR_ADDRESS_NOT_SUPPORTED_ERROR, but what is done is done."