mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
- Add a vendor patch that corrects a problem with sendfile(2)
on -CURRENT for zero sized files PR: ports/65358 Submitted by: maintainer
This commit is contained in:
parent
c8f7a26bae
commit
dd4aecf4a6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106584
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= libowfat
|
||||
PORTVERSION= 0.19.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel ipv6
|
||||
MASTER_SITES= http://dl.fefe.de/
|
||||
|
||||
|
19
devel/libowfat/files/patch-io-iob_addfile.c
Normal file
19
devel/libowfat/files/patch-io-iob_addfile.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user