mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
iputils: fix arping exitcodes
This commit is contained in:
parent
bf0f3c3de6
commit
0fa3185101
2 changed files with 18 additions and 1 deletions
17
srcpkgs/iputils/patches/fix-arping-exitcode.patch
Normal file
17
srcpkgs/iputils/patches/fix-arping-exitcode.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
diff --git arping.c arping.c
|
||||
index 77c9c56..2c87c15 100644
|
||||
--- arping.c
|
||||
+++ arping.c
|
||||
@@ -792,7 +792,11 @@ static int event_loop(struct run_state *ctl)
|
||||
close(tfd);
|
||||
freeifaddrs(ctl->ifa0);
|
||||
rc |= finish(ctl);
|
||||
- rc |= (ctl->sent != ctl->received);
|
||||
+ if (ctl->dad && ctl->quit_on_reply)
|
||||
+ /* Duplicate address detection mode return value */
|
||||
+ rc |= !(ctl->brd_sent != ctl->received);
|
||||
+ else
|
||||
+ rc |= (ctl->sent != ctl->received);
|
||||
return rc;
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'iputils'
|
||||
pkgname=iputils
|
||||
version=20190709
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="${pkgname}-s${version}"
|
||||
build_style=meson
|
||||
configure_args="-DNO_SETCAP_OR_SUID=true -DUSE_IDN=false
|
||||
|
|
Loading…
Add table
Reference in a new issue