Date: Fri, 1 Jun 2007 05:52:46 GMT From: Tetsuya Uemura<t_uemura@macome.co.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/113212: www/jesred: Fix incompatibility with Squid 2.6 Message-ID: <200706010552.l515qkHP019551@www.freebsd.org> Resent-Message-ID: <200706010600.l5160DB0069878@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 113212 >Category: ports >Synopsis: www/jesred: Fix incompatibility with Squid 2.6 >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 01 06:00:12 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Tetsuya Uemura >Release: 6.2-STABLE >Organization: MACOME Corp. >Environment: FreeBSD s2882g3nr.macome.co.jp 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon May 21 10:45:49 JST 2007 uemura@s2882g3nr.macome.co.jp:/usr/obj/usr/src/sys/S2882G3NR amd64 >Description: >From Squid 2.6, it's url_rewrite_program (redirector) interface have been changed, and www/jesred can't handle new format. >How-To-Repeat: Install www/jesred and www/squid, then configure Squid to use jesred as its url_rewrite_program. >Fix: Apply attached patch to www/jesred so that it can handle both old and new format. Patch attached with submission follows: diff -u3rN www/jesred.orig/Makefile www/jesred/Makefile --- www/jesred.orig/Makefile Fri Jan 20 16:50:06 2006 +++ www/jesred/Makefile Fri Jun 1 14:21:55 2007 @@ -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 -u3rN www/jesred.orig/files/patch-rewrite.c www/jesred/files/patch-rewrite.c --- www/jesred.orig/files/patch-rewrite.c Thu Jan 1 09:00:00 1970 +++ www/jesred/files/patch-rewrite.c Fri Jun 1 14:19:13 2007 @@ -0,0 +1,30 @@ +--- rewrite.c.orig Sat Aug 15 09:01:15 1998 ++++ rewrite.c Fri Jun 1 14:01:19 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] = ' '; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706010552.l515qkHP019551>