Closed Bug 279723 Opened 15 years ago Closed 15 years ago

Error mapper not called for PR_ReadDir implementation

Categories

(NSPR :: NSPR, defect)

x86
All
defect
Not set

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: poumeyrol, Assigned: wtc)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5

When PR_ReadDir reach the end of a directory, it returns NULL (which is fine)
but forget to call the error mapper pt_MapError to set correct error codes.

Reproducible: Always
This short patch seams to solve the issue. A little bit unsure about the right
way to call the mapper (MT / errno / ...).
Comment on attachment 172338 [details] [diff] [review]
Patch proposal to solve the issue

r=wtc.	This patch is correct.	Thanks for the bug report
and patch.
Attachment #172338 - Flags: review+
Patch checked into the NSPR trunk (NSPR 4.6) and
NSPRPUB_PRE_4_2_CLIENT_BRANCH (Mozilla 1.8 Beta).
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → 4.6
You need to log in before you can comment on or make changes to this bug.