From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 647AF138334 for ; Sat, 4 Jan 2020 08:06:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 510E6E08BE; Sat, 4 Jan 2020 08:06:34 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 35323E08BE for ; Sat, 4 Jan 2020 08:06:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 799AE34DEAC for ; Sat, 4 Jan 2020 08:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B4991E for ; Sat, 4 Jan 2020 08:06:31 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1578124960.01704754311ada2c2154f501aebfda50710a185d.robbat2@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/l2tp.sh net/pppd.sh X-VCS-Directories: net/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 01704754311ada2c2154f501aebfda50710a185d X-VCS-Branch: master Date: Sat, 4 Jan 2020 08:06:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5d7c5aba-d1a9-4da0-acbc-47b183d9b775 X-Archives-Hash: f967f1fc13e0c95f19c4d169915106c4 commit: 01704754311ada2c2154f501aebfda50710a185d Author: Robin H. Johnson gentoo org> AuthorDate: Sat Jan 4 08:02:40 2020 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sat Jan 4 08:02:40 2020 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=01704754 shellcheck: fix Double quote array expansions to avoid re-splitting elements. [SC2068] Signed-off-by: Robin H. Johnson gentoo.org> net/l2tp.sh | 2 +- net/pppd.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/l2tp.sh b/net/l2tp.sh index 7c5b064..9644e32 100644 --- a/net/l2tp.sh +++ b/net/l2tp.sh @@ -81,7 +81,7 @@ _l2tp_get_tunnel_info() { _ip_l2tp_add() { local e - e="$(LC_ALL=C ip l2tp add $@ 2>&1 1>/dev/null)" + e="$(LC_ALL=C ip l2tp add "$@" 2>&1 1>/dev/null)" case $e in "") return 0 diff --git a/net/pppd.sh b/net/pppd.sh index 796722e..e3c4d43 100644 --- a/net/pppd.sh +++ b/net/pppd.sh @@ -163,7 +163,7 @@ pppd_pre_start() # We need to flatten the useless array set -- $(_get_array "chat_${IFVAR}") if [ $# != 0 ]; then - opts="${opts} connect '$(echo ${chatprog} $@ | sed -e "s:':'\\\\'':g")'" + opts="${opts} connect '$(echo ${chatprog} "$@" | sed -e "s:':'\\\\'':g")'" fi # Add plugins