Notice: We have migrated to GitLab launching 2024-05-01 see here:

#3393 closed defect (fixed)

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

Reported by: Chris Johns Owned by: Chris Johns
Priority: normal Milestone: 4.11.4
Component: tool/rsb Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:


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 (1)

comment:1 Changed on 04/13/18 at 03:11:36 by Chris Johns <chrisj@…>

Resolution: fixed
Status: assignedclosed

In [changeset:"2c0676d4fa4b773369431fdc57a62333346876ea/rtems-source-builder" 2c0676d/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 #3393

Note: See TracTickets for help on using tickets.