Split each domain again after striping any trailing dot.
authorRoy Marples <roy@marples.name>
Thu, 25 Feb 2016 20:08:52 +0000 (20:08 +0000)
committerRoy Marples <roy@marples.name>
Thu, 25 Feb 2016 20:08:52 +0000 (20:08 +0000)
Fixes [1e6ac67eb3].

resolvconf.in

index c0cc6ba01d457e58c8aa3731bf8b08c3e4a65f22..95d20e16e4f2e077fa6437d3c50c92cfdab41c1b 100644 (file)
@@ -119,10 +119,11 @@ usage()
 # This also solves setting up duplicate zones in our subscribers.
 strip_trailing_dots()
 {
-       local n=
+       local n= d=
 
        for n; do
-               printf "%s" "${n%.}"
+               printf "$d%s" "${n%.}"
+               d=" "
        done
        printf "\n"
 }