Date: 9 Apr 2004 12:38:38 -0000 From: Thomas-Martin Seck <tmseck@netcologne.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/65358: [Maintainer] devel/libowfat: correct sendfile(2) problems on CURRENT Message-ID: <20040409123838.2843.qmail@laurel.tmseck.homedns.org> Resent-Message-ID: <200404091240.i39CeK1F044470@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040409123838.2843.qmail>