summaryrefslogtreecommitdiffstats
path: root/network/ufw/ufw-0.35-fix-iptables-path.patch
diff options
context:
space:
mode:
author Brenton Earl2016-07-22 08:34:08 +0200
committer Willy Sudiarto Raharjo2016-07-24 02:27:50 +0200
commitccc72cee9c8953f50772749d0ded2600c3aa4b10 (patch)
treef1881f90beb99a97c2d0ba19860abfe19fae728c /network/ufw/ufw-0.35-fix-iptables-path.patch
parent0a608a1e045c63e8b1968d3db3e3e70fafb7c293 (diff)
downloadslackbuilds-ccc72cee9c8953f50772749d0ded2600c3aa4b10.tar.gz
network/ufw: Updated for version 0.35.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/ufw/ufw-0.35-fix-iptables-path.patch')
-rw-r--r--network/ufw/ufw-0.35-fix-iptables-path.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/network/ufw/ufw-0.35-fix-iptables-path.patch b/network/ufw/ufw-0.35-fix-iptables-path.patch
new file mode 100644
index 0000000000..d81cd1744b
--- /dev/null
+++ b/network/ufw/ufw-0.35-fix-iptables-path.patch
@@ -0,0 +1,20 @@
+--- a/src/util.py.orig 2016-07-21 16:16:45.785925215 -0600
++++ b/src/util.py 2016-07-21 17:33:12.716614138 -0600
+@@ -727,7 +727,7 @@
+ return network == orig_network
+
+
+-def get_iptables_version(exe="/sbin/iptables"):
++def get_iptables_version(exe="/usr/sbin/iptables"):
+ '''Return iptables version'''
+ (rc, out) = cmd([exe, '-V'])
+ if rc != 0:
+@@ -737,7 +737,7 @@
+
+
+ # must be root, so don't report coverage in unit tests
+-def get_netfilter_capabilities(exe="/sbin/iptables", do_checks=True):
++def get_netfilter_capabilities(exe="/usr/sbin/iptables", do_checks=True):
+ '''Return capabilities set for netfilter to support new features. Callers
+ must be root.'''
+ def test_cap(exe, chain, rule):