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:
Ingo Weinhold 2002-07-15 09:05:25 +00:00
parent 4b9ebdb7e6
commit 8c27f58d89

View File

@ -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) ;