Re: includes inside squid.conf

From: Pete Bentley <>
Date: Mon, 1 Apr 2002 19:19:04 +0100

On Monday, April 1, 2002, at 06:43 pm, Andres Kroonmaa wrote:
> On unix, without understanding of inodes, there is no way to
> distinguish between files. There might be symbolic link, or hardlink,
> or symbolic link of a directory, or mountpoint, or etc... To expand
> given filename into its absolute path, you'd need to traverse the
> directory structure with understanding of underlying OS. I just didn't
> like that path.

If the platform has a realpath() (or equivalent) function in the C library,
  then Squid doesn't need to know anything about inodes. For platforms that
don't, either ignore the problem or provide a replacement.

> The alternative would be to _ignore_ possibility that
> different names point to same files, let it include few files multiple
> times and raise error only when exact same name is seen twice. Then
> we simply compare strings as they are provided. We can do that.

...which is sufficient to catch include loops. If there's a loop, then the
same filename *has* to re-appear.

Received on Mon Apr 01 2002 - 19:40:11 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:56 MST