Attention is currently required from: Arne Schwabe, Răzvan Cojocaru. Deri Haerudi has posted comments on this change by Deri Haerudi. ( https://gerrit.openvpn.net/c/openvpn/+/2341?usp=email )
Change subject: dns-scripts: parse dns_vars_file as data instead of sourcing it ...................................................................... Patch Set 3: (5 comments) File distro/dns-scripts/haikuos_file-dns-updown.sh: https://gerrit.openvpn.net/c/openvpn/+/2341/comment/f44a2e1d_32c186f6?usp=email : PS2, Line 53: [ -r "$_f" ] || exit 1 > Actually, could we also get an error message here? E.g.: […] Done in all five scripts, with your message. It goes to stdout like the other messages in these scripts ("invalid dev name", "setting DNS failed, ..."), so it ends up in the openvpn log. https://gerrit.openvpn.net/c/openvpn/+/2341/comment/76cb71ad_4742e566?usp=email : PS2, Line 67: [!A-Za-z0-9]* | *[!A-Za-z0-9_./-]* | *..*) > So on second thought, this causes a regression in what Linux actually allows > (e.g. […] Agreed, the allow-list rejected names that Linux accepts. PS3 uses your deny-list as is, in all five scripts. With `%` and `\` rejected, dev cannot end the `\%...%` address, so characters like `;`, `/`, `$` or blanks are only regex characters there. I re-ran the sed `e`/`r`/`w` payloads, which now get past the reader, against the three dns-down sed calls: nothing is executed, read or written (the same values with `/` as the delimiter still do). `_vpn`, `vpn+1` and `tun@corp` now round-trip, as do tun0, eth0.100, wg0, utun3 and tun/0. dev is still a regex in that address, as it was in the original scripts, so an unusual name only changes which marker lines match. https://gerrit.openvpn.net/c/openvpn/+/2341/comment/a7ae9f81_6123ae4a?usp=email : PS2, Line 114: domains="$domains$d " > This could stop at the first empty domain. E.g.: […] Done, thanks. The "search" line now has no trailing blanks and stops at the first empty domain. I rewrote the last paragraph of the commit message to say so. openvpn writes the domains without gaps, so the stop only matters for hand-written files. File distro/dns-scripts/resolvconf_file-dns-updown.sh: https://gerrit.openvpn.net/c/openvpn/+/2341/comment/fc67337a_a0a4cd90?usp=email : PS2, Line 114: domains="$domains$d " > Same suggestion as for haikuos_file-dns-updown.sh (same hunk). Done, same hunk. File distro/dns-scripts/systemd-dns-updown.sh: https://gerrit.openvpn.net/c/openvpn/+/2341/comment/d893cef7_39c2561a?usp=email : PS2, Line 266: domains="$domains$d " > This could stop at the first empty domain, e.g.: […] Done. -- To view, visit https://gerrit.openvpn.net/c/openvpn/+/2341?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.openvpn.net/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Id05f3e4e32aeb806d762858e754adc82f42d4371 Gerrit-Change-Number: 2341 Gerrit-PatchSet: 3 Gerrit-Owner: Deri Haerudi <[email protected]> Gerrit-Reviewer: Arne Schwabe <[email protected]> Gerrit-Reviewer: Răzvan Cojocaru <[email protected]> Gerrit-CC: openvpn-devel <[email protected]> Gerrit-Attention: Răzvan Cojocaru <[email protected]> Gerrit-Attention: Arne Schwabe <[email protected]> Gerrit-Comment-Date: Wed, 25 Nov 2026 11:21:55 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: Răzvan Cojocaru <[email protected]>
_______________________________________________ Openvpn-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-devel
