MFV r296350:

Split each domain again after striping any trailing dot.

Reported by:	 dumbbell
Obtained from:	openresolv (53416cf1b4)
This commit is contained in:
pfg 2016-03-03 15:36:00 +00:00
parent d07921367d
commit 5ccfe7c603

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