Merge pull request #667 from yangfl/master

Quote paths in nft scripts to prevent word splitting.
This commit is contained in:
Thomas BERNARD 2023-08-07 00:50:37 +02:00 committed by GitHub
commit fb5c328a5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
. $(dirname "$0")/miniupnpd_functions.sh
. "$(dirname "$0")/miniupnpd_functions.sh"
# Prerouting
$NFT delete chain inet $NAT_TABLE $PREROUTING_CHAIN

View File

@ -1,6 +1,6 @@
#!/bin/sh
. $(dirname "$0")/miniupnpd_functions.sh
. "$(dirname "$0")/miniupnpd_functions.sh"
# Prerouting
$NFT list chain inet $NAT_TABLE $PREROUTING_CHAIN

View File

@ -1,6 +1,6 @@
#!/bin/sh
. $(dirname "$0")/miniupnpd_functions.sh
. "$(dirname "$0")/miniupnpd_functions.sh"
$NFT flush chain inet $TABLE $CHAIN
$NFT flush chain inet $NAT_TABLE $PREROUTING_CHAIN

View File

@ -5,7 +5,7 @@
# 'add' doesn't raise an error if the object already exists. 'create' does.
#
. $(dirname "$0")/miniupnpd_functions.sh
. "$(dirname "$0")/miniupnpd_functions.sh"
$NFT --check list table inet $TABLE > /dev/null 2>&1
if [ $? -eq "0" ]

View File

@ -5,7 +5,7 @@
# Do not disturb other existing structures in nftables, e.g. those created by firewalld
#
. $(dirname "$0")/miniupnpd_functions.sh
. "$(dirname "$0")/miniupnpd_functions.sh"
$NFT --check list table inet $TABLE > /dev/null 2>&1
if [ $? -eq "0" ]