summaryrefslogtreecommitdiff
path: root/core/iputils
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-07 01:04:45 -0800
committerroot <root@rshg054.dnsready.net>2012-11-07 01:04:45 -0800
commita8fff09ba6d0f8b78b43e63541b1254763d4f48e (patch)
treed5ed9796d5aa31b378f4bfed4482b84008e731fa /core/iputils
parent85e0e667660650d70269432a90401d4288776d9d (diff)
Wed Nov 7 01:04:45 PST 2012
Diffstat (limited to 'core/iputils')
-rw-r--r--core/iputils/PKGBUILD13
-rw-r--r--core/iputils/iputils-20121011-flood.patch22
2 files changed, 31 insertions, 4 deletions
diff --git a/core/iputils/PKGBUILD b/core/iputils/PKGBUILD
index 56d38dc95..25d7ada55 100644
--- a/core/iputils/PKGBUILD
+++ b/core/iputils/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 169611 2012-10-24 12:55:26Z stephane $
+# $Id: PKGBUILD 170249 2012-11-06 11:26:55Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>
pkgname=iputils
pkgver=20121011
-pkgrel=1
+pkgrel=2
pkgdesc="IP Configuration Utilities (and Ping)"
arch=('i686' 'x86_64')
license=('GPL')
@@ -19,10 +19,12 @@ replaces=('netkit-base')
backup=(etc/xinetd.d/tftp)
install=${pkgname}.install
source=(http://www.skbuff.net/${pkgname}/${pkgname}-s${pkgver}.tar.bz2 tftp.xinetd
- iputils-20101006-ping-integer-overflow.patch)
+ iputils-20101006-ping-integer-overflow.patch
+ iputils-20121011-flood.patch)
sha1sums=('3e85179746fd93000d6267bd55addfe97f321ba7'
'fc2ae26f5609725e3f4aeaf4ab82dfa6d2e378fd'
- 'ec78574d798b53e4f8bdd37e42514fc17ed71667')
+ 'ec78574d798b53e4f8bdd37e42514fc17ed71667'
+ '2343edf0dce28030e43305cefedd60806bb58eae')
build() {
cd "${srcdir}/${pkgname}-s${pkgver}"
@@ -33,6 +35,9 @@ build() {
# FS#28897
patch -Np1 -i ../iputils-20101006-ping-integer-overflow.patch
+ # FS#32306
+ patch -Np1 -i ../iputils-20121011-flood.patch
+
make
cd doc
diff --git a/core/iputils/iputils-20121011-flood.patch b/core/iputils/iputils-20121011-flood.patch
new file mode 100644
index 000000000..5ced2d115
--- /dev/null
+++ b/core/iputils/iputils-20121011-flood.patch
@@ -0,0 +1,22 @@
+--- iputils-s20121011/ping_common.h 2012-11-05 10:07:40.065281888 +0100
++++ iputils-s20121011-new/ping_common.h 2012-11-05 10:07:22.001268362 +0100
+@@ -141,7 +141,7 @@ static inline void write_stdout(const ch
+ do {
+ cc = write(STDOUT_FILENO, str + o, len - o);
+ o += cc;
+- } while (len >= o || cc < 0);
++ } while (len > o || cc < 0);
+ }
+
+ /*
+--- iputils-s20121011/ping_common.c 2012-11-05 10:07:40.066281889 +0100
++++ iputils-s20121011-new/ping_common.c 2012-11-05 10:07:22.007268368 +0100
+@@ -776,7 +776,7 @@ restamp:
+ if (!csfailed)
+ write_stdout("\b \b", 3);
+ else
+- write_stdout("\bC", 1);
++ write_stdout("\bC", 2);
+ } else {
+ int i;
+ __u8 *cp, *dp;