Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#3392 closed defect (fixed)

infinite loop in RSB's path when a prefix path is not writable

Reported by: Chris Johns Owned by: Chris Johns
Priority: normal Milestone: 5.1
Component: tool/rsb Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

The code gets the dirname() of the path stepping up until there is no path however dirname('/') is / so the path never has a length of 0.

Change History (2)

comment:1 Changed on 04/13/18 at 03:06:15 by Chris Johns

Component: admintool/rsb
Owner: set to Chris Johns
Status: newaccepted

comment:2 Changed on 04/13/18 at 03:10:08 by Chris Johns <chrisj@…>

Resolution: fixed
Status: acceptedclosed

In [changeset:"cabaff820674700d4ca1951dc059b51fcf852d48/rtems-source-builder" cabaff8/rtems-source-builder]:

sb/path: Walk up to root checking if a path is writable.

A dirname of / is / so the path will never have a length of 0.

Close #3392

Note: See TracTickets for help on using tickets.