From owner-svn-src-head@freebsd.org Thu Mar 3 14:38:23 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB5E4A93DCC for ; Thu, 3 Mar 2016 14:38:23 +0000 (UTC) (envelope-from jean-sebastien.pedron@dumbbell.fr) Received: from mail.made4.biz (mail.made4.biz [IPv6:2001:41d0:2:c018::1:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 766B39AA; Thu, 3 Mar 2016 14:38:23 +0000 (UTC) (envelope-from jean-sebastien.pedron@dumbbell.fr) Received: from [176.158.145.63] (helo=magellan.dumbbell.fr) by mail.made4.biz with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86 (FreeBSD)) (envelope-from ) id 1abUOS-0001FM-PQ; Thu, 03 Mar 2016 15:38:20 +0100 To: svn-src-head@freebsd.org References: <201602291446.u1TEkdL9079747@repo.freebsd.org> Subject: Re: svn commit: r296190 - head/contrib/openresolv Cc: "Pedro F. Giffuni" From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= Message-ID: <56D84C57.60101@dumbbell.fr> Date: Thu, 3 Mar 2016 15:38:15 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <201602291446.u1TEkdL9079747@repo.freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nSrWTdtMPxIT74HDa7aq0DVu0gBo0qlQd" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 14:38:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nSrWTdtMPxIT74HDa7aq0DVu0gBo0qlQd Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! > +# Strip any trailing dot from each name as a FQDN does not belong > +# in resolv.conf(5) > +# If you think otherwise, capture a DNS trace and you'll see libc > +# will strip it regardless. > +# This also solves setting up duplicate zones in our subscribers. > +strip_trailing_dots() > +{ > + local n=3D > + > + for n; do > + printf "%s" "${n%.}" > + done > + printf "\n" > +} This specific change in openresolv removes all spaces separating names in the "search" or "domain" lines, because it doesn't print any whitespaces before/after stripped names. The result is: search domain1.tlddomain2.tlddomain3.tld It was fixed upstream: http://roy.marples.name/projects/openresolv/info/1e6ac67eb3c586a5 http://roy.marples.name/projects/openresolv/ci/53416cf1b434dbc1?sbs=3D0= However, it was not published in any release so far. --=20 Jean-S=C3=A9bastien P=C3=A9dron --nSrWTdtMPxIT74HDa7aq0DVu0gBo0qlQd Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJW2ExcXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NzA4N0ZEMUFFQUUwRTEyREJDNkE2RjAz OUU5OTc2MUE1RkQ5NENDAAoJEDnpl2Gl/ZTMjTQP/04vs4zEnfa650n6POfg2CTV TpigxXjhrHBZg3lubIycwBggg14Hwuu4UBtfLLgJP+sU8CgJ+63Z9We1FdruOMAB hevrH561bzJMWe7nxy+BpA/N+B9RqnZqe5tjcSQ9MmM6EJ9vAoXAur8tskXS4Vy5 XACr5X0eN+CeRoAk/FbArp5miqgTR1AM0jVsfpZtfwY3MHhiYIrpV0ns2geTXTMg erExwVEgjdrzPakU1to2aidpd/t0eaYsOLtIh3WOVRiyIrfcLhfzUvoWl54IcRhV HROJZrypAQ3iZhR+uWUnD2+38FvwbrQZzY6CbaYjrAuqwWEr3CfoZenH/+nqs7l6 JmsagJ9xt6R7Ww7WqUn2Z3z3gmDplRPuIX6FSu85CUeMK2SJ9XB8KeRPtleh/zOF m2cz7AGKUqUek/L5Kw/54aCf1mvToHyTxIuGGJ9h+DSKWDJFr/swyFbMYNPUX6/S AgHeuPf7rpL7WsW+2uvBcVXCTtaQEzMsiPgrZsY9qKnaFeENIimCcAyJPRn/FAG6 g4E+d3Znx9DV0VVqn8hJWldPBilM6bWF/N+8yGSnJxnzN/WPzWT833Plx0Rk3jAH MtZAqgcHL8Me7yI8XZ5oIVFwXC8IPn3dktt9Zs59gCrpuvsHSL9nhazeSvbU3rsh w8xV6Xn4va2CTk6CLP5J =sDK6 -----END PGP SIGNATURE----- --nSrWTdtMPxIT74HDa7aq0DVu0gBo0qlQd--