git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b038d45
)
Testsuite: interface number is optional
author
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 6 Oct 2019 19:48:28 +0000
(20:48 +0100)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Sun, 6 Oct 2019 19:48:28 +0000
(20:48 +0100)
test/runtest
patch
|
blob
|
history
diff --git
a/test/runtest
b/test/runtest
index 558fcf66188dc12618e97da1c0e09b7415a7e546..ad3a74da87a4c6802aa3c6d745e52be7d09c5c6f 100755
(executable)
--- a/
test/runtest
+++ b/
test/runtest
@@
-3406,7
+3406,7
@@
open(IFCONFIG, '-|', (grep { -x "$_/ip" } split /:/, $ENV{PATH}) ? 'ip address'
or die "** Cannot run 'ip address' or 'ifconfig -a'\n";
while (not ($parm_ipv4 and $parm_ipv6) and defined($_ = <IFCONFIG>))
{
- if (/^(?:[0-9]+: )([^:]+): /) { $ifname = $1; }
+ if (/^(?:[0-9]+: )
?
([^:]+): /) { $ifname = $1; }
if (not $parm_ipv4 and /^\s*inet(?:\saddr)?:?\s?(\d+\.\d+\.\d+\.\d+)(?:\/\d+)?\s/i)
{