From 3ae1990e869c46b56da84d4202d52dfb3ebd21aa Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Thu, 30 Nov 2017 12:28:32 -0800 Subject: [PATCH] net-firewall/ipset: improve init.d save Closes: https://bugs.gentoo.org/603376 Signed-off-by: Robin H. Johnson Package-Manager: Portage-2.3.16, Repoman-2.3.6 --- net-firewall/ipset/files/ipset.initd-r4 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 $? } -- 2.26.2