diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-06-11 21:40:04 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-06-11 21:40:04 (GMT) |
commit | a80eafbf9cab9d80c526c504edf2ee4446a072d9 (patch) | |
tree | 505a6caeb312d63e8b2d9f1814c9b2e807258d51 /pkg/fedora | |
parent | 4e9eedc8debe1388996bd5631f2df6e057854061 (diff) | |
download | monitoring-plugins-a80eafbf9cab9d80c526c504edf2ee4446a072d9.tar.gz |
Improve parsing of ping6(1) output
The ping6(1) implementation provided by Debian's iputils-ping package
may produce output such as the following:
| 3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2009ms
There's a corresponding pattern in check_ping.c:458:
| "%*d packets transmitted, %*d received, +%*d errors, %d%% packet loss"
Without this fix, the pattern in check_ping.c:456 matched first (as
sscanf(3) interprets "+3" as a match for "%d"):
| "%*d packets transmitted, %*d received, %d%% loss, time"
(#1894850 - Debian bug report #514588 - Matej Vela)
Diffstat (limited to 'pkg/fedora')
0 files changed, 0 insertions, 0 deletions