summaryrefslogtreecommitdiff
path: root/www/jesred
diff options
context:
space:
mode:
authorTom McLaughlin <tmclaugh@FreeBSD.org>2007-09-10 15:29:59 +0000
committerTom McLaughlin <tmclaugh@FreeBSD.org>2007-09-10 15:29:59 +0000
commit14e2095bc78365bbcaab82ea25238050f0e625e9 (patch)
treea2d747eb1b6908e9e13483cc98660f4e86bdbc2e /www/jesred
parent- Add games/linux-savage-samuraiwars entry (diff)
Fix compatibility with squid26 and squid30.
PR: 113212 Submitted by: Tetsuya Uemura Approved by: maintainer
Notes
Notes: svn path=/head/; revision=199284
Diffstat (limited to 'www/jesred')
-rw-r--r--www/jesred/Makefile1
-rw-r--r--www/jesred/files/patch-rewrite.c54
2 files changed, 55 insertions, 0 deletions
diff --git a/www/jesred/Makefile b/www/jesred/Makefile
index 7843ea3b398f..3e73d9bd2f83 100644
--- a/www/jesred/Makefile
+++ b/www/jesred/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jesred
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.linofee.org/~jel/webtools/src/ \
http://www.acad.bg/ftp/pub/src/misc/
diff --git a/www/jesred/files/patch-rewrite.c b/www/jesred/files/patch-rewrite.c
new file mode 100644
index 000000000000..88a6e1236951
--- /dev/null
+++ b/www/jesred/files/patch-rewrite.c
@@ -0,0 +1,54 @@
+--- rewrite.c.orig Sat Aug 15 09:01:15 1998
++++ rewrite.c Mon Jun 4 09:51:42 2007
+@@ -60,7 +60,7 @@
+ int c, i;
+ struct in_addr address;
+ char *token, *new_token;
+- char *end[4];
++ char *end[5];
+
+ c = 0;
+ token = strchr(buff,' ');
+@@ -87,11 +87,17 @@
+ *new_token = '\0';
+ end[3] = new_token;
+ *method = token;
++ new_token = strchr(token,' ');
++ if (new_token) {
++ c++;
++ *new_token = '\0';
++ end[4] = new_token;
++ }
+ }
+ }
+ }
+ }
+- if(c != 4) {
++ if(c < 4) {
+ for(i = 0; i < c; i++) {
+ if ( end[i] )
+ *end[i] = ' ';
+@@ -104,16 +110,16 @@
+ #endif
+
+ /* all methods must be GET or ICP_QUERY */
+- c = 0;
++ i = 0;
+ if (allow_siblings && (! strcmp(*method, "ICP_QUERY")) )
+- c--;
++ i--;
+ if( strcmp(*method, "GET") )
+- c++;
+- if ( c ) {
++ i++;
++ if ( i ) {
+ #ifdef DEBUG
+- for(c = 0; c < 4; c++) {
+- if ( end[c] )
+- *end[c] = ' ';
++ for(i = 0; i < c; i++) {
++ if ( end[i] )
++ *end[i] = ' ';
+ }
+ log(DEBG, "method not \"GET\" %s\n", buff);
+ #endif