SplitPath ran into an endless loop given absolute path.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@241 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4b9ebdb7e6
commit
8c27f58d89
3
Jamrules
3
Jamrules
@ -614,7 +614,8 @@ rule SplitPath
|
||||
# Decomposes a path into its components.
|
||||
local path = $(1:G=) ;
|
||||
local components ;
|
||||
while $(path:D)
|
||||
# $(path:D) for "/" is "/". Therefore the second condition.
|
||||
while $(path:D) && $(path:D) != $(path)
|
||||
{
|
||||
# Note: $(path:B) returns "." for "..", but $(path:D=) is fine.
|
||||
components = $(path:D=) $(components) ;
|
||||
|
Loading…
Reference in New Issue
Block a user