diff --git a/srcpkgs/iputils/patches/fix-arping-exitcode.patch b/srcpkgs/iputils/patches/fix-arping-exitcode.patch new file mode 100644 index 00000000000..1bebcd02c3f --- /dev/null +++ b/srcpkgs/iputils/patches/fix-arping-exitcode.patch @@ -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; + } + diff --git a/srcpkgs/iputils/template b/srcpkgs/iputils/template index 605c62357b0..f8198b59cad 100644 --- a/srcpkgs/iputils/template +++ b/srcpkgs/iputils/template @@ -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