Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/usr.bin/make



On Sat, 13 Oct 2007, David Laight wrote:
>       src/usr.bin/make: parse.c
>
> When processing .include "../../foo.mk" lexically process the leading ../
> against the directory name of the makefile being processed.

I see the attraction of this lexical processing, but it won't always
work in the presence of symlinks to directories.

You could use stat(2) to check that the paths before and after lexically
removing "." or ".." components actually refer to the same directory,
and give up on the lexical processing if they are different.

--apb (Alan Barrett)



Home | Main Index | Thread Index | Old Index