]> git.gsnw.org Git - fping.git/commitdiff
Use setcap to specify specific files
authorYiran Zhou <zdyxry@gmail.com>
Sat, 20 Nov 2021 00:23:34 +0000 (08:23 +0800)
committerYiran Zhou <zdyxry@gmail.com>
Sat, 20 Nov 2021 00:23:34 +0000 (08:23 +0800)
contrib/fping.spec

index e587c4ad72e10d720a229146454019193c84cc96..823c7ff1918d1e94d4ed20e8ee5d48e7c0b82a4a 100644 (file)
@@ -54,7 +54,8 @@ rm -rf $RPM_BUILD_ROOT
 %post
 if [ -x /usr/sbin/setcap ]; then
     /bin/chmod 0755 /usr/sbin/fping*
-    /usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping*
+    /usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping
+    /usr/sbin/setcap cap_net_raw+ep /usr/sbin/fping6
 fi
 
 %changelog