Lines 1-28
Link Here
|
1 |
--- rdnssd/merge-hook.in.orig 2014-12-14 10:13:57 UTC |
|
|
2 |
+++ rdnssd/merge-hook.in |
3 |
@@ -19,7 +19,7 @@ |
4 |
|
5 |
set -e |
6 |
|
7 |
-PATH=/sbin:/bin |
8 |
+PATH=/sbin:/bin:/usr/bin |
9 |
|
10 |
# Max number of nameserver options taken into account. Should be as |
11 |
# defined in <resolv.h> |
12 |
@@ -31,14 +31,14 @@ MAXNS=3 |
13 |
# will limit the IPv6 entries it adds to $RDNSS_LIMIT only. |
14 |
RDNSS_LIMIT=$(($MAXNS - 1)) |
15 |
|
16 |
-sysconfdir='@SYSCONFDIR@' |
17 |
+sysconfdir='/etc' |
18 |
localstatedir='@LOCALSTATEDIR@' |
19 |
resolvconf="$sysconfdir/resolv.conf" |
20 |
myresolvconf="$localstatedir/run/rdnssd/resolv.conf" |
21 |
|
22 |
# These should be POSIX-compliant BREs |
23 |
RE_NSV4='^nameserver *\([0-9]\{1,3\}\.\)\{3,3\}[0-9]\{1,3\} *$' |
24 |
-RE_NSV4OR6='^nameserver *[a-fA-F0-9:\.]\{1,46\}\(%[a-zA-Z0-9]\{1,\}\)\{,1\} *$' |
25 |
+RE_NSV4OR6='^nameserver *[a-fA-F0-9:\.]\{1,46\}\(%[a-zA-Z0-9]\{1,\}\)\{0,1\} *$' |
26 |
|
27 |
# Count how many IPv6 nameservers we can fit |
28 |
|