diff options
author | Thomas Liske <thomas@fiasko-nw.net> | 2020-08-17 11:08:15 +0200 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-08-17 13:43:14 +0000 |
commit | 87d8c4f3316b1d8df4b8bcfdb29ec2c39c37353d (patch) | |
tree | 5fcb06497114020d08144b9e3ea3434f0e625c43 /main/iptables/ebtables.initd | |
parent | 09c3d84e6dcc7ec72020c93e40d635e49beb86ac (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.initd | 3 |
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 |