net-firewall/nftables: Touch rules-save with right umask
authorFrancisco Blas (klondike) Izquierdo Riera <klondike@gentoo.org>
Mon, 2 Dec 2019 18:27:29 +0000 (19:27 +0100)
committerMatthew Thode <prometheanfire@gentoo.org>
Mon, 2 Dec 2019 18:51:45 +0000 (12:51 -0600)
commite9d9a46d5115e5c75085f335bded4badbce05673
tree7fa9284d119c996d5b0519a259a365b94e1e1d92
parentc462d2e51ff55918629a7df082d8d1310a83b7ca
net-firewall/nftables: Touch rules-save with right umask

The nftables ebuild contains code to ensure the rules-save
file is created so the service will start on systemd based
systems.

The current code creates the file with default permissions
644 which triggers the code for detecting misconfigured system
added to address bug #691326

Instead of just using touch, start a subshell so we can call
umask beforehand and address the issue.

Bug: https://bugs.gentoo.org/691326
Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
Package-Manager: Portage-2.3.76, Repoman-2.3.11
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
net-firewall/nftables/nftables-0.9.0-r5.ebuild
net-firewall/nftables/nftables-0.9.1-r1.ebuild
net-firewall/nftables/nftables-0.9.2-r1.ebuild