diff options
author | Colin Percival <cperciva@FreeBSD.org> | 2016-10-12 20:24:33 +0000 |
---|---|---|
committer | Colin Percival <cperciva@FreeBSD.org> | 2016-10-12 20:24:33 +0000 |
commit | e7fd266eaf0c11352b9d41951b2d2964a91fc8b6 (patch) | |
tree | 63fea6cd179e1606ea88c620eec808a2703fba00 /usr.sbin/freebsd-update/freebsd-update.sh | |
parent | 968d859d09abb90686e8c9d6ecd782306a22c636 (diff) | |
download | src-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.sh | 2 |
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 |