From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 13 01:00:31 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73BC716A41F for ; Tue, 13 Sep 2005 01:00:31 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA47043D46 for ; Tue, 13 Sep 2005 01:00:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j8D10UnS031359 for ; Tue, 13 Sep 2005 01:00:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j8D10Udt031349; Tue, 13 Sep 2005 01:00:30 GMT (envelope-from gnats) Resent-Date: Tue, 13 Sep 2005 01:00:30 GMT Resent-Message-Id: <200509130100.j8D10Udt031349@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, SANETO Takanori Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C093E16A41F for ; Tue, 13 Sep 2005 00:52:24 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F7D443D45 for ; Tue, 13 Sep 2005 00:52:24 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j8D0qOuZ004670 for ; Tue, 13 Sep 2005 00:52:24 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id j8D0qN3Q004669; Tue, 13 Sep 2005 00:52:23 GMT (envelope-from nobody) Message-Id: <200509130052.j8D0qN3Q004669@www.freebsd.org> Date: Tue, 13 Sep 2005 00:52:23 GMT From: SANETO Takanori To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: ports/86045: nntpcache xover filter won't work X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2005 01:00:31 -0000 >Number: 86045 >Category: ports >Synopsis: nntpcache xover filter won't work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 13 01:00:30 GMT 2005 >Closed-Date: >Last-Modified: >Originator: SANETO Takanori >Release: 7.0-CURRENT >Organization: an individual >Environment: FreeBSD muse.sanewo.ddo.jp 7.0-CURRENT FreeBSD 7.0-CURRENT #668: Sat Aug 13 07:29:19 JST 2005 r\ oot@muse.sanewo.ddo.jp:/export/usr/obj/usr/src/sys/MUSE i386 >Description: xover header filtering (From:, Subject:, Message-ID:, etc.) won't work. xover_filter expect scope_header matches xover field name. in src/acc.c, while reading filter file and assigning header name to scope_header, colon (":") in header name has stripped off. As xover field name has colon, they won't match. >How-To-Repeat: put "filter" permission and filter file name to nntpcache.access, put some "Header:" filter in filter file and see if it work. >Fix: Following patch should fix this. --- src/acc.c.orig Mon Sep 12 22:50:52 2005 +++ src/acc.c Mon Sep 12 22:51:09 2005 @@ -195,7 +195,7 @@ loge (("bad filter header/scope %s in file %s: %s", scope, fi, buf)); Exit(1); } - *p='\0'; + /* *p='\0'; */ f->scope = sc_header; f->scope_header = Sstrdup(scope); } >Release-Note: >Audit-Trail: >Unformatted: