From: Robin H. Johnson <robbat2@gentoo.org> Date: Thu, 30 Nov 2017 20:28:32 +0000 (-0800) Subject: net-firewall/ipset: improve init.d save X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3ae1990e869c46b56da84d4202d52dfb3ebd21aa;p=gentoo.git 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 --- diff --git a/net-firewall/ipset/files/ipset.initd-r4 b/net-firewall/ipset/files/ipset.initd-r4 index 08edfcbcf859..32ab581d8c83 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 $? }