MFV r296350:

Split each domain again after striping any trailing dot.

Reported by:	 dumbbell
Obtained from:	openresolv (53416cf1b4)
This commit is contained in:
Pedro F. Giffuni 2016-03-03 15:36:00 +00:00
commit 316e599449

View File

@ -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"
}