net-firewall/ipset: improve init.d save
authorRobin H. Johnson <robbat2@gentoo.org>
Thu, 30 Nov 2017 20:28:32 +0000 (12:28 -0800)
committerRobin H. Johnson <robbat2@gentoo.org>
Thu, 30 Nov 2017 20:35:48 +0000 (12:35 -0800)
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

net-firewall/ipset/files/ipset.initd-r4

index 08edfcbcf8592d1bd95b5aaecd2caae2b7736f73..32ab581d8c838de2deb461d54e51b360c418c732 100644 (file)
@@ -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 $?
 }