Closed Bug 907512 Opened 11 years ago Closed 11 years ago

Unix platforms shouldn't mask errors specific to Unix domain sockets

Categories

(NSPR :: NSPR, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
4.10.1

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

Don't mask filesystem-related errors when using Unix domain sockets.
Instead, let _MD_unix_map_default_error handle them normally.

This issue came up before in bug 270784 comment 4.

The patch is provided by Jim Blandy.
Attachment #793247 - Flags: review+
Patch checked in to the NSPR hg repository:
https://hg.mozilla.org/projects/nspr/rev/398f17927407

I will push the patch to mozilla-central soon.
OS: Linux → All
Attachment #793247 - Flags: checked-in+
For documentation of the errors in the patch:

connect() man page:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/connect.html

bind() man page:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html
Thanks very much!
Comment on attachment 793247 [details] [diff] [review]
Patch by  Jim Blandy

Patch pushed to mozilla-inbound:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c40bba0de508
https://hg.mozilla.org/mozilla-central/rev/c40bba0de508
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.