#1522 closed defect (fixed)

_rename_r overwrites the actual errno, instead sets the errno to -1

Reported by: Bharath Suri Owned by: Bharath Suri
Priority: normal Milestone: 4.10
Component: score Version: 4.10
Severity: minor Keywords:
Cc: joel.sherrill@…, chrisj@… Blocked By:
Blocking:

Description

The function _rename_r overwrites the errno at two circumstances and the caller would not know about the actual error, if any specified.

  1. After evaluating the relative path of the old path
  2. After evaluating the new path

In both the scenarios, the errno is overwritten with -1.

Attachments (2)

diff-_rename_r (727 bytes) - added by Bharath Suri on May 19, 2010 at 10:35:21 PM.
Proposed patch to bug
diff-ChangeLog (550 bytes) - added by Bharath Suri on May 19, 2010 at 10:37:29 PM.
Updated ChangeLog? entry for the patch

Download all attachments as: .zip

Change History (5)

Changed on May 19, 2010 at 10:35:21 PM by Bharath Suri

Attachment: diff-_rename_r added

Proposed patch to bug

Changed on May 19, 2010 at 10:37:29 PM by Bharath Suri

Attachment: diff-ChangeLog added

Updated ChangeLog? entry for the patch

comment:1 Changed on May 19, 2010 at 10:39:08 PM by Bharath Suri

Status: newassigned

comment:2 Changed on May 20, 2010 at 2:12:29 AM by Chris Johns

Resolution: fixed
Status: assignedclosed, chrisj@rtems.org

comment:3 Changed on May 20, 2010 at 2:14:03 AM by Chris Johns

Closed.

Note: See TracTickets for help on using tickets.