diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2021-03-30 18:06:31 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2021-03-30 18:10:48 -0700 |
commit | bef5edf9d2d1fcd982ae19a7cb05dc2d58b854e7 (patch) | |
tree | 84ad7ff5aab9b7a6485400bafa60abb2f7d277aa /init.d/net.lo.in | |
parent | functions.sh: Fix non-netns case for ip command (diff) | |
download | netifrc-bef5edf9d2d1fcd982ae19a7cb05dc2d58b854e7.tar.gz netifrc-bef5edf9d2d1fcd982ae19a7cb05dc2d58b854e7.tar.bz2 netifrc-bef5edf9d2d1fcd982ae19a7cb05dc2d58b854e7.zip |
net.lo.in: quote variables in _configure_variables
The variables being passed to eval aren't quoted either in the before-eval
scope, or in what is passed to eval. Make sure they are quoted.
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'init.d/net.lo.in')
-rw-r--r-- | init.d/net.lo.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init.d/net.lo.in b/init.d/net.lo.in index 06304e1..0bb69f3 100644 --- a/init.d/net.lo.in +++ b/init.d/net.lo.in @@ -225,9 +225,9 @@ _configure_variables() for var in ${_config_vars}; do local v= for t; do - eval v=\$${var}_${t} + eval v="\"\$${var}_${t}\"" if [ -n "${v}" ]; then - eval ${var}_${IFVAR}=\$${var}_${t} + eval "${var}_${IFVAR}=\"\$${var}_${t}\"" continue 2 fi done |