The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / iputils / 0001-ping-ping6-Fix-hang-with-f-option.patch
1 From 712fddacfb5c4a8a48d9c5debe1870bc051d836c Mon Sep 17 00:00:00 2001
2 From: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
3 Date: Tue, 6 Nov 2012 02:44:12 +0900
4 Subject: [PATCH] ping,ping6: Fix hang with -f option.
5
6 Bug was introduced by commit 8feb586c4... (ping,ping6: Check return
7 value of write(2) for stdout.).
8
9 https://bugs.archlinux.org/task/32306
10
11 Patch-by: Jan Synacek <jsynacek@redhat.com>
12 Reported-by: Mohammad Alsaleh <msal@tormail.org>
13 Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
14 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
15 ---
16  ping_common.h | 2 +-
17  1 file changed, 1 insertion(+), 1 deletion(-)
18
19 diff --git a/ping_common.h b/ping_common.h
20 index d2a2b5c..6726e1b 100644
21 --- a/ping_common.h
22 +++ b/ping_common.h
23 @@ -140,7 +140,7 @@ static inline void write_stdout(const char *str, size_t len)
24         do {
25                 cc = write(STDOUT_FILENO, str + o, len - o);
26                 o += cc;
27 -       } while (len >= o || cc < 0);
28 +       } while (len > o || cc < 0);
29  }
30  
31  /*
32 -- 
33 2.1.3
34