From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 9 05:40:21 2004 Return-Path: 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 EB60D16A52C for ; Fri, 9 Apr 2004 05:40:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFD0F43D5D for ; Fri, 9 Apr 2004 05:40:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i39CeKbv044471 for ; Fri, 9 Apr 2004 05:40:20 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i39CeK1F044470; Fri, 9 Apr 2004 05:40:20 -0700 (PDT) (envelope-from gnats) Resent-Date: Fri, 9 Apr 2004 05:40:20 -0700 (PDT) Resent-Message-Id: <200404091240.i39CeK1F044470@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, Thomas-Martin Seck Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E12F16A4CE for ; Fri, 9 Apr 2004 05:38:22 -0700 (PDT) Received: from smtp2.netcologne.de (smtp2.netcologne.de [194.8.194.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C8FF43D2D for ; Fri, 9 Apr 2004 05:38:22 -0700 (PDT) (envelope-from thomas@laurel.tmseck.homedns.org) Received: from laurel.tmseck.homedns.org (xdsl-213-168-117-111.netcologne.de [213.168.117.111]) by smtp2.netcologne.de (Postfix) with SMTP id A672A39FBC for ; Fri, 9 Apr 2004 14:38:20 +0200 (MEST) Received: (qmail 2844 invoked by uid 1001); 9 Apr 2004 12:38:38 -0000 Message-Id: <20040409123838.2843.qmail@laurel.tmseck.homedns.org> Date: 9 Apr 2004 12:38:38 -0000 From: Thomas-Martin Seck To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/65358: [Maintainer] devel/libowfat: correct sendfile(2) problems on CURRENT X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Thomas-Martin Seck List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2004 12:40:21 -0000 >Number: 65358 >Category: ports >Synopsis: [Maintainer] devel/libowfat: correct sendfile(2) problems on CURRENT >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Apr 09 05:40:20 PDT 2004 >Closed-Date: >Last-Modified: >Originator: Thomas-Martin Seck >Release: FreeBSD 4.9-STABLE i386 >Organization: a private site in Germany >Environment: FreeBSD ports repository as of March 9, 2004. >Description: - Add a vendor patch that corrects a problem with sendfile(2) on -CURRENT for zero sized files (reported by Dirk Engling on the dietlibc mailing list) - bump PORTREVISION Note to committers: please 'cvs add': files/patch-io-iob_addfile.c >How-To-Repeat: >Fix: Apply this patch: Index: files/patch-io-iob_addfile.c =================================================================== --- files/patch-io-iob_addfile.c (revision 0) +++ files/patch-io-iob_addfile.c (revision 14) @@ -0,0 +1,19 @@ +Index: io/iob_addfile.c +=================================================================== +RCS file: /cvs/libowfat/io/iob_addfile.c,v +retrieving revision 1.2 +retrieving revision 1.3 +diff -u -r1.2 -r1.3 +--- io/iob_addfile.c 26 Sep 2003 15:55:44 -0000 1.2 ++++ io/iob_addfile.c 7 Apr 2004 08:38:41 -0000 1.3 +@@ -1,7 +1,9 @@ + #include "iob_internal.h" + + int iob_addfile(io_batch* b,int64 fd,uint64 off,uint64 n) { +- iob_entry* e=array_allocate(&b->b,sizeof(iob_entry), ++ iob_entry* e; ++ if (n==0) return 1; ++ e=array_allocate(&b->b,sizeof(iob_entry), + array_length(&b->b,sizeof(iob_entry))); + if (!e) return 0; + e->type=FROMFILE; Index: Makefile =================================================================== --- Makefile (revision 7) +++ Makefile (working copy) @@ -7,6 +7,7 @@ PORTNAME= libowfat PORTVERSION= 0.19.2 +PORTREVISION= 1 CATEGORIES= devel ipv6 MASTER_SITES= http://dl.fefe.de/ >Release-Note: >Audit-Trail: >Unformatted: