Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
security/openvpn: fix test suite when ifconfig emits ::1/128 address …
Browse files Browse the repository at this point in the history
…format

Some systems apparently format output of ifconfig lo0 similar to
"inet6 ::1/128" instead of 12.1's "inet6 ::1 prefixlen 128". This
confuses the test script, so strip the slash and trailing prefixlen
off.

Since that bug affects the build-time test suite and its occurrence
breaks the build, no PORTREVISION bump needed.

Reported by:	des@
  • Loading branch information
mandree committed Oct 6, 2020
1 parent b227dbd commit 829bf8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/openvpn/files/patch-tests__t_cltsrv.sh
Expand Up @@ -40,7 +40,7 @@
+ add='proto udp6 '
+fi
+for i in server client ; do
+ sed -e "s/localhost/$2/" -e "/^remote /a\\
+ sed -e "s|localhost|${2%/*}|" -e "/^remote /a\\
+$add" ${root}/sample-config-files/loopback-$i \
+ >${root}/sample-config-files/loopback-$i.test
+done
Expand Down

0 comments on commit 829bf8c

Please sign in to comment.