Re: How to use squid patch?

From: Thanos Siaperas <thanus@dont-contact.us>
Date: Tue, 27 Jun 2000 11:00:15 +0300

David Rees wrote:
>
> On Tue, Jun 27, 2000 at 09:26:06AM +0800, big_fish@email.com.cn wrote:
> > I've got a patch for squid-2.3s3.(disk over limit)
> > But I don't know how to use it?
> > I know little about 'patch' command,still after reading
> > manual.
>
> Here's how to do it:
>
> > > patch -p0 < ../squid-2.3.stable3-storeExpiredReferenceAge.patch
> >
> Then configure, compile, and reinstall.
>
> -Dave

If you are in a hurry, and feel like doing a hack, try the following
(for the disk over limit patch) :

cd squid-2.3.STABLE3
vi src/store.c
go to line 1226
Remove the trailing semicolon (";") from the end of the line
Add a tab at the beggining of the next line (optional)
make
cp src/squid /usr/local/squid/bin/squid ( or wherever it is)
/etc/init.d/httpcache stop
/etc/init.d/httpcache start

Thanos Siaperas
thanus@auth.gr
Received on Tue Jun 27 2000 - 02:03:54 MDT

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