[RTEMS Project] #4710: RSB does not expand dir type macros correctly
RTEMS trac
trac at rtems.org
Sun Aug 28 22:34:02 UTC 2022
#4710: RSB does not expand dir type macros correctly
--------------------------+-------------------------
Reporter: Chris Johns | Owner: Chris Johns
Type: defect | Status: assigned
Priority: normal | Milestone: 6.1
Component: tool/rsb | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
--------------------------+-------------------------
The expansion of the `dir` type macros is not done correctly. Macro
replacement only appends the file part to the last element of a path list.
For example:
{{{
%{mydir}/abc.cfg
}}}
with a path of:
{{{
%define mydir x:y:z
}}}
results in:
{{{
x:y:z/abc.cfg
}}}
The config load code handles this but it is wrong. The expansion of `dir`
type macro variables should handle path separators (`:`) so you get:
{{{
x/abc.cfg:y/abc.cfg:z.abc.cfg
}}}
This has not been a problem in the RSB because the `_configdir` has only
had two elements and the last one only ever had subdirectories.
--
Ticket URL: <http://devel.rtems.org/ticket/4710>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list