aboutsummaryrefslogblamecommitdiffstats
path: root/main/ndisc6/rdnssd-fix-merge-hook-regex.patch
blob: 85e89136c4b420ec2960a1ca93dce5c30c96e35c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                  
Reason: '{,1}' is not valid in regular expressions, it should be '{0,1}'.
Busybox sed does not accept the former.
Upstream: no

diff --git a/rdnss/merge-hook.in b/rdnss/merge-hook.in
index 383a57c..00ddcb2 100644
--- a/rdnss/merge-hook.in
+++ b/rdnss/merge-hook.in
@@ -38,7 +38,7 @@ myresolvconf="$localstatedir/run/rdnssd/resolv.conf"
 
 # These should be POSIX-compliant BREs
 RE_NSV4='^nameserver  *\([0-9]\{1,3\}\.\)\{3,3\}[0-9]\{1,3\} *$'
-RE_NSV4OR6='^nameserver  *[a-fA-F0-9:\.]\{1,46\}\(%[a-zA-Z0-9]\{1,\}\)\{,1\} *$'
+RE_NSV4OR6='^nameserver  *[a-fA-F0-9:\.]\{1,46\}\(%[a-zA-Z0-9]\{1,\}\)\{0,1\} *$'
 
 # Count how many IPv6 nameservers we can fit