svn commit: r307156 - head/usr.sbin/freebsd-update

Colin Percival cperciva at FreeBSD.org
Wed Oct 12 20:24:34 UTC 2016


Author: cperciva
Date: Wed Oct 12 20:24:33 2016
New Revision: 307156
URL: https://svnweb.freebsd.org/changeset/base/307156

Log:
  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
  MFC after:	2 weeks

Modified:
  head/usr.sbin/freebsd-update/freebsd-update.sh

Modified: head/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- head/usr.sbin/freebsd-update/freebsd-update.sh	Wed Oct 12 20:19:33 2016	(r307155)
+++ head/usr.sbin/freebsd-update/freebsd-update.sh	Wed Oct 12 20:24:33 2016	(r307156)
@@ -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


More information about the svn-src-head mailing list