aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-03-03 15:32:50 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-03-03 15:32:50 +0000
commitd2b324ed6092b2aeb56a15c7f6ed88cbd870361f (patch)
tree7abba9422861c0c4d79aff5d31dc03cf82aa0630
parent6baa733ddfdda38f924d4540ca4d2391a4bc3a14 (diff)
downloadsrc-d2b324ed6092b2aeb56a15c7f6ed88cbd870361f.tar.gz
src-d2b324ed6092b2aeb56a15c7f6ed88cbd870361f.zip
Split each domain again after striping any trailing dot.
Obtained from: openresolv (53416cf1b4) Reported by: dumbbell
Notes
Notes: svn path=/vendor/openresolv/dist/; revision=296350
-rw-r--r--resolvconf.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/resolvconf.in b/resolvconf.in
index 829321e16e8f..3bfed5e24891 100644
--- a/resolvconf.in
+++ b/resolvconf.in
@@ -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"
}