aboutsummaryrefslogtreecommitdiffstats
path: root/main/iptables/ebtables.initd
diff options
context:
space:
mode:
authorThomas Liske <thomas@fiasko-nw.net>2020-08-17 11:08:15 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-08-17 13:43:14 +0000
commit87d8c4f3316b1d8df4b8bcfdb29ec2c39c37353d (patch)
tree5fcb06497114020d08144b9e3ea3434f0e625c43 /main/iptables/ebtables.initd
parent09c3d84e6dcc7ec72020c93e40d635e49beb86ac (diff)
main/iptables: use checkpath in initd to create non-public files
Diffstat (limited to 'main/iptables/ebtables.initd')
-rw-r--r--main/iptables/ebtables.initd3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/iptables/ebtables.initd b/main/iptables/ebtables.initd
index b3aa438c8b5..7d9243672a4 100644
--- a/main/iptables/ebtables.initd
+++ b/main/iptables/ebtables.initd
@@ -77,8 +77,7 @@ reload() {
save() {
ebegin "Saving ebtables state"
- echo -n > "${ebtables_save}"
- chmod 0600 "${ebtables_save}"
+ checkpath -Fm 0600 "${ebtables_save}"
for a in ${ebtables_tables} ; do
${ebtables_bin}-save -t ${a} ${SAVE_RESTORE_OPTIONS} >> "${ebtables_save}"
done