MFV r296350:
Split each domain again after striping any trailing dot. Reported by: dumbbell Obtained from: openresolv (53416cf1b4)
This commit is contained in:
parent
d07921367d
commit
5ccfe7c603
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user