From patchwork Thu Nov 26 10:24:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gert Doering X-Patchwork-Id: 5793 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:6022:91c9:10b0:11b:d6c:f273 with SMTP id tl9-n1csp6969890lad; Thu, 26 Nov 2026 02:24:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErEuK8Js5tff3RE/aydMIC6cEqHlW5aDLeDzGwN6x4iUiLRDCVPDPJnUYOCuVAw/mSacq2zdm06wmjc=@openvpn.net X-Received: by 2002:a05:7301:fd07:b0:36d:be15:2dd6 with SMTP id 5a478bee46e88-38570844f7cmr20939224eec.11.1795688679849; Thu, 26 Nov 2026 02:24:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795688679; cv=none; d=google.com; s=arc-20260327; b=GSwdJIRzij1dkWDgMiKiim8NfXSL+fQezvHyZs0Lar5YMTk0v9vxDM05TlYuge6lbm zsVodg20pEzwzdUVjqCVt/BVOkconDuY84lyb4ny/+JX9oazFXDQyDytuIiOFHbf9Is1 1ggxbd6ib5ouEEGeD9mKYuxPJNlxL2kNHgckSOSfcX7feZDkN2t+S8REw2TQy3oFyV+Q Ew7be1o1If0RPqy0m8YgffvTRr17oH7IiZLMYaK+g1ZCKeLBIg4WdXI/9O0hAkX1SMCD z3sE+5kpxs70CJ1CW5VPbUAT0AzA8SD1mY9bBS9CliTZAzgxAIio62GjOtpCoH4xx2Rw l1KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature:dkim-signature; bh=mUxDbVSG5Yu7D43gJP90MDsMU82XLcqv/V7Zn5yU040=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=T2IFQK5aBY9ZbsvDBzIqHYXxt5lB1DgZ6yUMdVAVBibDaqy95BdINcRL5y2rKrVTya w93reio8okhoYDCI3pxh1WiIoVHwpoa2JX3ONqjLjYIWRH5Kpw9E+HXxoMl8qMn0PwIi QqiVrKrSvnN4b64da4AYxk9AWIYS1Eg1w4M9YCFWadHbcJyyK95u8H/h4HdMAPUfjH6f XO2StUMsotAc0ZjhTvpeav8JlsV/GL/Jc3IILmRzNE5u9NnWfuOqgPcZeGS62B8SlK66 dqdJc/bd/1XoSMQCMDV+6fJ0MPb0hYpa2nQK0xrqwFBGSW15ihIk4a9rdRf7V3AR9hXr APXQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b="AM75Ydo/"; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=Z2MDf5RP; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=mdluTzrb; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 5a478bee46e88-386e563f90asi1358141eec.29.2026.11.26.02.24.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Nov 2026 02:24:39 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.sourceforge.net header.s=beta header.b="AM75Ydo/"; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=Z2MDf5RP; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=mdluTzrb; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=mUxDbVSG5Yu7D43gJP90MDsMU82XLcqv/V7Zn5yU040=; b=AM75Ydo/KY/LGw 3CTTLCugQDXyq7GacZGBnZ95dGBiIP6OV2V2UPh1nyJgIQPWxh8sJkTUXBj2JoB07gjFolei6pLNN i/pW3EKYgH4JJcWPCvWUL7pRD4C/MFk5r5GcsTIb86SX9p/Jvfj+ZQPlP/qDX1Ke+mb5YUvPHBCp/ S6M=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xWWeb-000000003d5-2bFY; Thu, 26 Nov 2026 10:24:37 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xWWeW-000000003cf-09L1 for openvpn-devel@lists.sourceforge.net; Thu, 26 Nov 2026 10:24:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6f4m5atxx3Hhg3/rgjDpZq8IQknwGKBR47x3L0nv+9o=; b=Z2MDf5RP6gyfRzNbC6zoRlM9bY BJALh3vSppRDEWaF+yeJ4KVd9Ccv+NeKr4ILpERxKeDitqSwKBhqme+rhmVfZWf6raSsiqpPj+g8s jqIUMG00VPqSgolOpBbhonHajW8RfQZQ4VLRgEzScRBFITupt3dap+JGuUtZHLjefUeE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6f4m5atxx3Hhg3/rgjDpZq8IQknwGKBR47x3L0nv+9o=; b=mdluTzrbBy4i5zVQ0xxGzSCxo8 l5WrDS4oSSyFmem7E6iqjbTHkqFumEy8OSniL7raNu8Dk9utp6aRHUiGBLRMIxjHVrTHq9e2Q2v6/ 9//wOmR2i1ZlNI2mbCpXCY61jSopLoKirhS7F0L27akIOhxkjgMRj8QaHO5acvpteXkg=; Received: from [193.149.48.129] (helo=blue.greenie.muc.de) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.100.1) id 1xWWeS-000000003Rg-0OqJ for openvpn-devel@lists.sourceforge.net; Thu, 26 Nov 2026 10:24:29 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 6AQAOL7l029816 for ; Thu, 26 Nov 2026 11:24:21 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 6AQAOLjN029815 for openvpn-devel@lists.sourceforge.net; Thu, 26 Nov 2026 11:24:21 +0100 From: Gert Doering To: openvpn-devel@lists.sourceforge.net Date: Thu, 26 Nov 2026 11:24:14 +0100 Message-ID: <20261126102421.29800-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.55.0 In-Reply-To: References: MIME-Version: 1.0 X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "sfi-spamd-2.hosts.colo.sdot.me", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Heiko Hund $domains was expanded before eval, so the domains collected so far were parsed as shell code again. Escape it like the indexed variable. Change-Id: I247474b43ac7a22d16a150a856ae5643657eacdb Signed-off-by: Heiko Hund Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/openv [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [193.149.48.129 listed in list.dnswl.org] 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS X-Headers-End: 1xWWeS-000000003Rg-0OqJ Subject: [Openvpn-devel] [PATCH v2] dns-scripts: don't re-evaluate collected search domains X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: 1882916053195248409 X-GMAIL-MSGID: 1882916053195248409 From: Heiko Hund $domains was expanded before eval, so the domains collected so far were parsed as shell code again. Escape it like the indexed variable. Change-Id: I247474b43ac7a22d16a150a856ae5643657eacdb Signed-off-by: Heiko Hund Acked-by: Razvan Cojocaru Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2347 --- This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master. Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2347 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru diff --git a/distro/dns-scripts/haikuos_file-dns-updown.sh b/distro/dns-scripts/haikuos_file-dns-updown.sh index e19b2b7..04e9e26 100644 --- a/distro/dns-scripts/haikuos_file-dns-updown.sh +++ b/distro/dns-scripts/haikuos_file-dns-updown.sh @@ -75,7 +75,7 @@ test -z "$dns_search_domain_1" || { for i in $(seq 1 6); do - eval domains=\"$domains\$dns_search_domain_${i} \" || break + eval domains=\"\$domains\$dns_search_domain_${i} \" || break done text="${text}search $domains\n" } diff --git a/distro/dns-scripts/resolvconf_file-dns-updown.sh b/distro/dns-scripts/resolvconf_file-dns-updown.sh index 8d23ed6..78bf9d3 100644 --- a/distro/dns-scripts/resolvconf_file-dns-updown.sh +++ b/distro/dns-scripts/resolvconf_file-dns-updown.sh @@ -75,7 +75,7 @@ test -z "$dns_search_domain_1" || { for i in $(seq 1 6); do - eval domains=\"$domains\$dns_search_domain_${i} \" || break + eval domains=\"\$domains\$dns_search_domain_${i} \" || break done text="${text}search $domains\n" } diff --git a/distro/dns-scripts/systemd-dns-updown.sh b/distro/dns-scripts/systemd-dns-updown.sh index 553056b..3bdaa4b 100644 --- a/distro/dns-scripts/systemd-dns-updown.sh +++ b/distro/dns-scripts/systemd-dns-updown.sh @@ -227,7 +227,7 @@ test -z "$dns_search_domain_1" || { for i in $(seq 1 6); do - eval domains=\"$domains\$dns_search_domain_${i} \" || break + eval domains=\"\$domains\$dns_search_domain_${i} \" || break done text="${text}search $domains\n" }