From: David Leib <David.Leib@ericom.com>
To: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: [PATCH] handle a network adapter ending in a space character
Date: Tue, 31 Jan 2023 11:43:02 +0000 [thread overview]
Message-ID: <DM6PR04MB6155B09AAC361275C059DF1EF8D09@DM6PR04MB6155.namprd04.prod.outlook.com> (raw)
Due to a bug in a driver, a network adapter had a space character at the end of the name. This patch should allow the script to correctly read the name of the adapter.
---
src/wg-quick/darwin.bash | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wg-quick/darwin.bash b/src/wg-quick/darwin.bash
index 8e46818..b6bb5dc 100755
--- a/src/wg-quick/darwin.bash
+++ b/src/wg-quick/darwin.bash
@@ -220,7 +220,7 @@ declare -A SERVICE_DNS_SEARCH
collect_new_service_dns() {
local service get_response
local -A found_services
- { read -r _ && while read -r service; do
+ { read -r _ && while IFS= read -r service; do
[[ $service == "*"* ]] && service="${service:1}"
found_services["$service"]=1
[[ -n ${SERVICE_DNS["$service"]} ]] && continue
--
2.32.0.windows.1
next reply other threads:[~2023-02-07 4:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-31 11:43 David Leib [this message]
2023-02-07 22:53 ` Jason A. Donenfeld
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DM6PR04MB6155B09AAC361275C059DF1EF8D09@DM6PR04MB6155.namprd04.prod.outlook.com \
--to=david.leib@ericom.com \
--cc=wireguard@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).