net-firewall/nftables: Minor fixes on the script closes #675188
authorFrancisco Blas (klondike) Izquierdo Riera <klondike@gentoo.org>
Tue, 15 Jan 2019 23:13:18 +0000 (00:13 +0100)
committerMatthew Thode <prometheanfire@gentoo.org>
Tue, 15 Jan 2019 23:20:42 +0000 (17:20 -0600)
commit5340dc96865d410a32ab4cb9f900bcb88e035600
tree74bd9bce6d30450233bcad2977cc3e8c1e9ba3d1
parentb8dc714664cd392b19eb41af6c1b316771fbc89b
net-firewall/nftables: Minor fixes on the script closes #675188

* Use printf instead of echo for better shell compatibility.
* Use an include instead of concatenating the ruleset.
  (Note that this is likely to fail is the ruleset path contains
   special characters).
* Empty the table first when executing panic actions.

Fixes: https://bugs.gentoo.org/675188

Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
net-firewall/nftables/files/libexec/nftables-mk.sh
net-firewall/nftables/nftables-0.9.0-r3.ebuild [moved from net-firewall/nftables/nftables-0.9.0-r2.ebuild with 100% similarity]