aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/freebsd-update/freebsd-update.sh
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2016-10-12 20:24:33 +0000
committerColin Percival <cperciva@FreeBSD.org>2016-10-12 20:24:33 +0000
commite7fd266eaf0c11352b9d41951b2d2964a91fc8b6 (patch)
tree63fea6cd179e1606ea88c620eec808a2703fba00 /usr.sbin/freebsd-update/freebsd-update.sh
parent968d859d09abb90686e8c9d6ecd782306a22c636 (diff)
downloadsrc-e7fd266eaf0c11352b9d41951b2d2964a91fc8b6.tar.gz
src-e7fd266eaf0c11352b9d41951b2d2964a91fc8b6.zip
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
Notes
Notes: svn path=/head/; revision=307156
Diffstat (limited to 'usr.sbin/freebsd-update/freebsd-update.sh')
-rw-r--r--usr.sbin/freebsd-update/freebsd-update.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index 9537c3214690..dcc275fcd7b1 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -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