- change MAINTAINER, ports@ -> brad@ - add 2 distribution patches; squid-2.2.stable5-domain-match.patch Matching a hostname and a domain name doesn't always work, depending on leading dots and other edge conditions. Plus, the code for matching in ACL's worked one way, while the code for matching 'cache_peer_domain' list worked slighly different. The patch below makes all host/domain matching operate the same way. It also changes the rules a bit, so your current configuration probably will not work the way you want after applying this patch. - patch was included in the patches dir because of the difference in relative path in comparison to all the other distribution patches. squid-2.2.stable5-mkhttpdlogtime-end-of-year.patch = patch-ai mkhttpdlogtime() generates a date string of the form 31/Dec/1999:23:59:59 +0900. But when the year changes, the timezone offset will be wrong, for example: 01/Jan/2000:00:00:00 -1500.
23 lines
691 B
Plaintext
23 lines
691 B
Plaintext
--- lib/rfc1123.c.orig Fri Feb 12 14:38:15 1999
|
|
+++ lib/rfc1123.c Mon Jan 17 09:16:29 2000
|
|
@@ -237,15 +237,16 @@
|
|
gmt_yday = gmt->tm_yday;
|
|
|
|
lt = localtime(t);
|
|
- day_offset = lt->tm_yday - gmt_yday;
|
|
- min_offset = day_offset * 1440 + (lt->tm_hour - gmt_hour) * 60
|
|
- + (lt->tm_min - gmt_min);
|
|
|
|
+ day_offset = lt->tm_yday - gmt_yday;
|
|
/* wrap round on end of year */
|
|
if (day_offset > 1)
|
|
day_offset = -1;
|
|
else if (day_offset < -1)
|
|
day_offset = 1;
|
|
+
|
|
+ min_offset = day_offset * 1440 + (lt->tm_hour - gmt_hour) * 60
|
|
+ + (lt->tm_min - gmt_min);
|
|
|
|
len = strftime(buf, 127 - 5, "%d/%b/%Y:%H:%M:%S ", lt);
|
|
snprintf(buf + len, 128 - len, "%+03d%02d",
|