Package: openvpn
Version: 2.3.7-2+b1
Severity: minor
Tags: patch

Hi,

I came across a bug when using /update-resolv-conf/ in my configuration.
Indeed, when there are more than 9 parameters pushed from the server,
the order isn't kept, when applied.

Here's my patch to fix this problem.

Best regards,


--- openvpn-2.3.7/debian/control	2015-09-08 10:09:05.000000000 +0200
+++ openvpn-2.3.7-patched/debian/control	2015-12-08 00:40:47.250754635 +0100
@@ -11,7 +11,7 @@
 Package: openvpn
 Architecture: any
 Depends: debconf | debconf-2.0, ${shlibs:Depends}, ${misc:Depends}, initscripts (>= 2.88dsf-13.3), iproute2 [linux-any], net-tools [!linux-any]
-Suggests: openssl, resolvconf
+Suggests: openssl, resolvconf, coreutils
 Recommends: easy-rsa
 Description: virtual private network daemon
  OpenVPN is an application to securely tunnel IP networks over a
--- openvpn-2.3.7/debian/update-resolv-conf	2013-09-09 15:58:03.000000000 +0200
+++ openvpn-2.3.7-patched/debian/update-resolv-conf	2015-12-12 23:43:25.604424477 +0100
@@ -30,7 +30,8 @@
   up)
 	NMSRVRS=""
 	SRCHS=""
-	for optionvarname in ${!foreign_option_*} ; do
+	foreign_options=$(printf '%s\n' ${!foreign_option_*} | sort -t _ -k 3 -g)
+	for optionvarname in ${foreign_options} ; do
 		option="${!optionvarname}"
 		echo "$option"
 		split_into_parts $option

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to