Attention is currently required from: Arne Schwabe.

Hello Arne Schwabe,

I'd like you to do a code review.
Please visit

    https://gerrit.openvpn.net/c/openvpn/+/2347?usp=email

to review the following change.


Change subject: dns-scripts: don't re-evaluate collected search domains
......................................................................

dns-scripts: don't re-evaluate collected search domains

$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 <[email protected]>
---
M distro/dns-scripts/haikuos_file-dns-updown.sh
M distro/dns-scripts/resolvconf_file-dns-updown.sh
M distro/dns-scripts/systemd-dns-updown.sh
3 files changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/47/2347/1

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"
         }

--
To view, visit https://gerrit.openvpn.net/c/openvpn/+/2347?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I247474b43ac7a22d16a150a856ae5643657eacdb
Gerrit-Change-Number: 2347
Gerrit-PatchSet: 1
Gerrit-Owner: Heiko Hund <[email protected]>
Gerrit-Reviewer: Arne Schwabe <[email protected]>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: Arne Schwabe <[email protected]>
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to