Date: Thu, 3 Mar 2016 15:36:01 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r296351 - head/contrib/openresolv Message-ID: <201603031536.u23Fa1kX092706@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Thu Mar 3 15:36:00 2016 New Revision: 296351 URL: https://svnweb.freebsd.org/changeset/base/296351 Log: MFV r296350: Split each domain again after striping any trailing dot. Reported by: dumbbell Obtained from: openresolv (53416cf1b4) Modified: head/contrib/openresolv/resolvconf.in Directory Properties: head/contrib/openresolv/ (props changed) Modified: head/contrib/openresolv/resolvconf.in ============================================================================== --- head/contrib/openresolv/resolvconf.in Thu Mar 3 15:32:50 2016 (r296350) +++ head/contrib/openresolv/resolvconf.in Thu Mar 3 15:36:00 2016 (r296351) @@ -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" }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603031536.u23Fa1kX092706>