diff options
author | wiz <wiz> | 2002-10-17 19:18:01 +0000 |
---|---|---|
committer | wiz <wiz> | 2002-10-17 19:18:01 +0000 |
commit | 7511ea54ff094d3d06751a6079784804f53c8f0e (patch) | |
tree | dc9a315bfb1a544b3bef591fe97b55f14992a96b /net | |
parent | f78b3b612bef3652a3f9c52db8c02ec699696290 (diff) | |
download | pkgsrc-7511ea54ff094d3d06751a6079784804f53c8f0e.tar.gz |
Add patch to make sendfiled work again, provided by Matthias Friedrich
in relation with his PR 18642.
Bump to 2.1.0.2.
Diffstat (limited to 'net')
-rw-r--r-- | net/sendfile/Makefile | 4 | ||||
-rw-r--r-- | net/sendfile/distinfo | 3 | ||||
-rw-r--r-- | net/sendfile/patches/patch-ad | 13 |
3 files changed, 17 insertions, 3 deletions
diff --git a/net/sendfile/Makefile b/net/sendfile/Makefile index eccdef197f0..4b0c0db2dec 100644 --- a/net/sendfile/Makefile +++ b/net/sendfile/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.8 2002/10/13 16:30:41 wiz Exp $ +# $NetBSD: Makefile,v 1.9 2002/10/17 19:18:01 wiz Exp $ # DISTNAME= sendfile-20010216 -PKGNAME= sendfile-2.1.0.1 +PKGNAME= sendfile-2.1.0.2 WRKSRC= ${WRKDIR}/sendfile-2.1a CATEGORIES= net MASTER_SITES= ftp://ftp.belwue.de/pub/unix/sendfile/current/ diff --git a/net/sendfile/distinfo b/net/sendfile/distinfo index 3f4aee3e193..42af3ce43bf 100644 --- a/net/sendfile/distinfo +++ b/net/sendfile/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.4 2002/10/13 16:30:41 wiz Exp $ +$NetBSD: distinfo,v 1.5 2002/10/17 19:18:01 wiz Exp $ SHA1 (sendfile-20010216.tar.gz) = cdf6ff67bdc11709209c5f93ac94d380fa1abac3 Size (sendfile-20010216.tar.gz) = 292130 bytes SHA1 (patch-aa) = 6c242d962625986cf6c0ed20696a979f8852c85f SHA1 (patch-ab) = c74cf201573068d8e1afa8e285831181d1be789e SHA1 (patch-ac) = bd81d52fc1eada9170b48404f6c0d7779acdea84 +SHA1 (patch-ad) = ec9cf6dd79b6856c196058cb3117f2b140fffa31 diff --git a/net/sendfile/patches/patch-ad b/net/sendfile/patches/patch-ad new file mode 100644 index 00000000000..ca7780f0ef5 --- /dev/null +++ b/net/sendfile/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1 2002/10/17 19:18:02 wiz Exp $ + +--- src/sendfiled.c.orig Tue Feb 6 00:42:53 2001 ++++ src/sendfiled.c +@@ -4000,6 +4000,8 @@ void cleanup() { + * RETURN: nothing, but terminates program on error + */ + void setreugid() { ++ if ( getegid() == rgid && geteuid() == ruid ) ++ return; + if (rgid && setegid(rgid)<0) { + printf("490 Internal error on setegid(%u): %s\r\n", + (unsigned int)rgid,strerror(errno)); |