Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Mar 2018 08:00:07 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330373 - stable/11/usr.sbin/freebsd-update
Message-ID:  <201803040800.w24807km077513@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Mar  4 08:00:07 2018
New Revision: 330373
URL: https://svnweb.freebsd.org/changeset/base/330373

Log:
  MFC r307156:
  
  MFportsnap r264740: Use case insensitive match when parsing host(1) output.
  
  Some DNS caches turn "FreeBSD.org" into "freebsd.org", which was causing
  the printed SRV records to not match our regex.
  
  PR:		170503

Modified:
  stable/11/usr.sbin/freebsd-update/freebsd-update.sh
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- stable/11/usr.sbin/freebsd-update/freebsd-update.sh	Sun Mar  4 06:19:41 2018	(r330372)
+++ stable/11/usr.sbin/freebsd-update/freebsd-update.sh	Sun Mar  4 08:00:07 2018	(r330373)
@@ -953,7 +953,7 @@ fetch_pick_server_init () {
 # "$name server selection ..."; we allow either format.
 	MLIST="_http._tcp.${SERVERNAME}"
 	host -t srv "${MLIST}" |
-	    sed -nE "s/${MLIST} (has SRV record|server selection) //p" |
+	    sed -nE "s/${MLIST} (has SRV record|server selection) //Ip" |
 	    cut -f 1,2,4 -d ' ' |
 	    sed -e 's/\.$//' |
 	    sort > serverlist_full



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803040800.w24807km077513>