From d2b324ed6092b2aeb56a15c7f6ed88cbd870361f Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Thu, 3 Mar 2016 15:32:50 +0000 Subject: [PATCH] Split each domain again after striping any trailing dot. Obtained from: openresolv (53416cf1b4) Reported by: dumbbell --- resolvconf.in | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resolvconf.in b/resolvconf.in index 829321e16e8f..3bfed5e24891 100644 --- a/resolvconf.in +++ b/resolvconf.in @@ -127,10 +127,11 @@ echo_resolv() # 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" }