From 99e498d8db53aaee7dbba346d75ab0cb6860a025 Mon Sep 17 00:00:00 2001 From: David Schweikert Date: Tue, 30 Sep 2014 21:22:58 +1000 Subject: [PATCH] travis fix --- ci/build-2-install.sh | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ci/build-2-install.sh b/ci/build-2-install.sh index 41c7d4b..a27794f 100755 --- a/ci/build-2-install.sh +++ b/ci/build-2-install.sh @@ -11,13 +11,19 @@ fi autoreconf -i ./configure --enable-ipv4 --enable-ipv6 --prefix=/opt/fping make CFLAGS="-g -fprofile-arcs -ftest-coverage" -pwd -df -k . -which setcap -uname -a -mount -sudo setcap cap_net_raw+ep src/fping -sudo setcap cap_net_raw+ep src/fping6 +## setcap currently doesn't worn anymore on travis-ci +#sudo setcap cap_net_raw+ep src/fping +#sudo setcap cap_net_raw+ep src/fping6 +## setcap debugging: +#pwd +#df -k . +#which setcap +#uname -a +#mount +# +#sudo apt-get install strace +#sudo strace setcap cap_net_raw+ep src/fping -sudo apt-get install strace -sudo strace setcap cap_net_raw+ep src/fping +# use setuid, since setcap is not available +chmod +s src/fping +chmod +s src/fping6 -- 2.43.0