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:
@@ -614,7 +614,8 @@ rule SplitPath
|
|||||||
# Decomposes a path into its components.
|
# Decomposes a path into its components.
|
||||||
local path = $(1:G=) ;
|
local path = $(1:G=) ;
|
||||||
local components ;
|
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.
|
# Note: $(path:B) returns "." for "..", but $(path:D=) is fine.
|
||||||
components = $(path:D=) $(components) ;
|
components = $(path:D=) $(components) ;
|
||||||
|
|||||||
Reference in New Issue
Block a user