ports/opt (2.2): fetchmail: added patch to avoid segfault with broken headers
commit 06b9392d5bcb264eb0663144230e74158a8d6048 Author: Simone Rota <sip@crux.nu> Date: Fri Dec 1 11:23:48 2006 +0100 fetchmail: added patch to avoid segfault with broken headers diff --git a/fetchmail/.md5sum b/fetchmail/.md5sum index f3c7352..22fb7d1 100644 --- a/fetchmail/.md5sum +++ b/fetchmail/.md5sum @@ -1 +1,2 @@ e8dc5cd8e80677bb60e397d6171d12ec fetchmail-6.3.5.tar.bz2 +f6cd8be4e304921caa15024e0720b968 fetchmail-brokenheaders.patch diff --git a/fetchmail/Pkgfile b/fetchmail/Pkgfile index 7ceca13..baacb40 100644 --- a/fetchmail/Pkgfile +++ b/fetchmail/Pkgfile @@ -5,11 +5,13 @@ name=fetchmail version=6.3.5 -release=1 -source=(http://download2.berlios.de/$name/$name-$version.tar.bz2) +release=2 +source=(http://download2.berlios.de/$name/$name-$version.tar.bz2 \ + $name-brokenheaders.patch) build() { cd $name-$version + patch -p0 < ../$name-brokenheaders.patch ./configure --prefix=/usr --with-ssl=/usr --disable-nls make make DESTDIR=$PKG install diff --git a/fetchmail/fetchmail-brokenheaders.patch b/fetchmail/fetchmail-brokenheaders.patch new file mode 100644 index 0000000..c6828d9 --- /dev/null +++ b/fetchmail/fetchmail-brokenheaders.patch @@ -0,0 +1,24 @@ +Index: sink.c +=================================================================== +--- sink.c (revision 4923) ++++ sink.c (working copy) +@@ -1317,14 +1317,14 @@ + { + int rc,e,e2,err = 0; + +- if (ferror(sinkfp)) +- err = 1, e2 = errno; +- if ((fflush(sinkfp))) +- err = 1, e2 = errno; +- + /* close the delivery pipe, we'll reopen before next message */ + if (sinkfp) + { ++ if (ferror(sinkfp)) ++ err = 1, e2 = errno; ++ if ((fflush(sinkfp))) ++ err = 1, e2 = errno; ++ + errno = 0; + rc = pclose(sinkfp); + e = errno;
participants (1)
-
crux@crux.nu