commit 21f31e4f50f330403c6a27f7b00e508a951e5425
parent 029986b325ac83122f60cb4447957aff736ea909
Author: ChristianRomberg <distjubo@gmail.com>
Date: Thu, 25 Jan 2018 17:53:49 +0100
Update Makefile
Use capabilities instead of setuid
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -31,7 +31,7 @@ searchnet : os_generic.o ping.o searchnet.o
linuxinstall : cnping
sudo cp cnping /usr/local/bin/
- sudo chmod +s /usr/local/bin/cnping
+ sudo setcap cap_net_raw+ep /usr/local/bin/cnping
clean :
rm -rf *.o *~ cnping cnping.exe cnping-mousey searchnet