summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-11-30 12:28:32 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-11-30 12:35:48 -0800
commit3ae1990e869c46b56da84d4202d52dfb3ebd21aa (patch)
tree2caf4416cb74d4b68713bbf95d8bed457d1fee00 /net-firewall/ipset
parentnet-firewall/ipset: bump (diff)
downloadgentoo-3ae1990e869c46b56da84d4202d52dfb3ebd21aa.tar.gz
gentoo-3ae1990e869c46b56da84d4202d52dfb3ebd21aa.tar.bz2
gentoo-3ae1990e869c46b56da84d4202d52dfb3ebd21aa.zip
net-firewall/ipset: improve init.d save
Closes: https://bugs.gentoo.org/603376 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Package-Manager: Portage-2.3.16, Repoman-2.3.6
Diffstat (limited to 'net-firewall/ipset')
-rw-r--r--net-firewall/ipset/files/ipset.initd-r43
1 files changed, 1 insertions, 2 deletions
diff --git a/net-firewall/ipset/files/ipset.initd-r4 b/net-firewall/ipset/files/ipset.initd-r4
index 08edfcbcf85..32ab581d8c8 100644
--- a/net-firewall/ipset/files/ipset.initd-r4
+++ b/net-firewall/ipset/files/ipset.initd-r4
@@ -88,8 +88,7 @@ reload() {
save() {
ebegin "Saving ipset session"
- touch "${IPSET_SAVE}"
- chmod 0600 "${IPSET_SAVE}"
+ checkpath --file --mode 0600 "${IPSET_SAVE}"
ipset save > "${IPSET_SAVE}"
eend $?
}