mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 09:13:37 +01:00
Split each domain again after striping any trailing dot.
Obtained from: openresolv (53416cf1b4) Reported by: dumbbell
This commit is contained in:
parent
6baa733ddf
commit
d2b324ed60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/openresolv/dist/; revision=296350
@ -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