Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2005 12:29:14 +0400 (MSD)
From:      Dmitry Morozovsky <marck@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/80934: [patch] www/oops fix for recent ipfilter update
Message-ID:  <200505120829.j4C8TEi1089222@woozle.rinet.ru>
Resent-Message-ID: <200505120830.j4C8U3T1066950@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         80934
>Category:       ports
>Synopsis:       [patch] www/oops fix for recent ipfilter update
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 12 08:30:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Morozovsky
>Release:        FreeBSD 4-STABLE i386
>Organization:
Cronyx Plus LLC (RiNet ISP)
>Environment:
System: FreeBSD 4-STABLE 

>Description:

After recent ipfilter update IPL_NAT symbol has disappeared. This brokes at least www/oops port.


>How-To-Repeat:

>Fix:
Attached patch should fix error on all supported branches.


Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/www/oops/Makefile,v
retrieving revision 1.35
diff -u -r1.35 Makefile
--- Makefile	9 Feb 2005 14:43:05 -0000	1.35
+++ Makefile	12 May 2005 08:27:07 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	oops
 PORTVERSION=	${OOPSVERSION}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
 MASTER_SITES=	http://oops-cache.org/
 DISTNAME=	${PORTNAME}-${OOPSVERSION}
Index: files/patch-src_modules_transparent.c
===================================================================
RCS file: files/patch-src_modules_transparent.c
diff -N files/patch-src_modules_transparent.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ files/patch-src_modules_transparent.c	12 May 2005 08:27:07 -0000
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- src/modules/transparent.c.orig
++++ src/modules/transparent.c
+@@ -214,7 +214,7 @@
+ 	natLookup.nl_outip = rq->client_sa.sin_addr;
+ 	natLookup.nl_flags = IPN_TCP;
+ 	if (natfd < 0) {
+-	    natfd = open(IPL_NAT, O_RDONLY, 0);
++	    natfd = open(IPNAT_NAME, O_RDONLY, 0);
+ 	    if (natfd < 0) {
+ 		my_xlog(OOPS_LOG_HTTP|OOPS_LOG_DBG|OOPS_LOG_SEVERE, "transparent/redir(): NAT open failed: %m\n");
+ 		goto notdone;
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505120829.j4C8TEi1089222>