From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1266036-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9FC171382C5 for <garchives@archives.gentoo.org>; Wed, 31 Mar 2021 01:11:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A5CB7E0814; Wed, 31 Mar 2021 01:11:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 507E4E081E for <gentoo-commits@lists.gentoo.org>; Wed, 31 Mar 2021 01:11:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CDED1335D4A for <gentoo-commits@lists.gentoo.org>; Wed, 31 Mar 2021 01:11:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0520D5B4 for <gentoo-commits@lists.gentoo.org>; Wed, 31 Mar 2021 01:11:08 +0000 (UTC) From: "Patrick McLean" <chutzpah@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrick McLean" <chutzpah@gentoo.org> Message-ID: <1617153048.bef5edf9d2d1fcd982ae19a7cb05dc2d58b854e7.chutzpah@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: init.d/ X-VCS-Repository: proj/netifrc X-VCS-Files: init.d/net.lo.in X-VCS-Directories: init.d/ X-VCS-Committer: chutzpah X-VCS-Committer-Name: Patrick McLean X-VCS-Revision: bef5edf9d2d1fcd982ae19a7cb05dc2d58b854e7 X-VCS-Branch: master Date: Wed, 31 Mar 2021 01:11:08 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c2bc0e92-0b1e-4f5b-95b9-d63b2116981f X-Archives-Hash: 121590b66098b52968a61a68154c8881 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