Split each domain again after striping any trailing dot.

Obtained from:	openresolv (53416cf1b4)
Reported by:	 dumbbell
This commit is contained in:
Pedro F. Giffuni 2016-03-03 15:32:50 +00:00
parent 6baa733ddf
commit d2b324ed60
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/openresolv/dist/; revision=296350

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