mirror of
https://github.com/mirror/make.git
synced 2025-03-30 06:00:31 +08:00
Formerly vpath.c.~8~
This commit is contained in:
parent
7444af63fc
commit
9a1a8d0dc6
6
vpath.c
6
vpath.c
@ -191,9 +191,8 @@ construct_vpath_list (pattern, dirpath)
|
||||
if (len > 1 && p[-1] == '/')
|
||||
--len;
|
||||
|
||||
if (len == 1 && *v == '.')
|
||||
continue;
|
||||
|
||||
if (len > 1 || *v != '.')
|
||||
{
|
||||
v = savestring (v, len);
|
||||
|
||||
/* Verify that the directory actually exists. */
|
||||
@ -209,6 +208,7 @@ construct_vpath_list (pattern, dirpath)
|
||||
else
|
||||
/* The directory does not exist. Omit from the list. */
|
||||
free (v);
|
||||
}
|
||||
|
||||
/* Skip over colons and blanks between entries. */
|
||||
while (*p == ':' || isblank (*p))
|
||||
|
Loading…
Reference in New Issue
Block a user