commit: bef5edf9d2d1fcd982ae19a7cb05dc2d58b854e7
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 31 01:06:31 2021 +0000
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Wed Mar 31 01:10:48 2021 +0000
URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=bef5edf9
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 <AT> gentoo.org>
init.d/net.lo.in | 4 ++--
1 file 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