]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
tests/t_lpback.sh: Switch sed(1) to POSIX-compatible regex.
authorKyle Evans <kevans@FreeBSD.org>
Fri, 6 Sep 2019 17:44:59 +0000 (19:44 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 24 Sep 2019 21:48:12 +0000 (23:48 +0200)
A test run with FreeBSD PR 229925 'Disallow escaping ordinary
characters in regex(3)' reveals one sed expression that uses the
GNU-extension "\s".

Given that this is the only occurrence and it's a trivial fix,
update it to be POSIX-compatible.

Signed-off-by: Matthias Andree <matthias.andree@gmx.de>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20190906174458.14975-2-matthias.andree@gmx.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18806.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/t_lpback.sh

index d851289607c9aa6f69826fff8cdd69f13b12d9fe..f2729fd43ac3a17a442af75c2b037c48683b55cb 100755 (executable)
@@ -26,7 +26,7 @@ trap "rm -f key.$$ tc-server-key.$$ tc-client-key.$$ log.$$ ; exit 1" 0 3
 
 # Get list of supported ciphers from openvpn --show-ciphers output
 CIPHERS=$(${top_builddir}/src/openvpn/openvpn --show-ciphers | \
-            sed -e '/The following/,/^$/d' -e s'/ .*//' -e '/^\s*$/d')
+            sed -e '/The following/,/^$/d' -e s'/ .*//' -e '/^[[:space:]]*$/d')
 
 # SK, 2014-06-04: currently the DES-EDE3-CFB1 implementation of OpenSSL is
 # broken (see http://rt.openssl.org/Ticket/Display.html?id=2867), so exclude