Date: Sat, 24 Jan 2015 09:01:23 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 197047] freebsd-update fails to parse mirror list Message-ID: <bug-197047-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197047 Bug ID: 197047 Summary: freebsd-update fails to parse mirror list Product: Base System Version: 10.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: dronmbi@gtn.ru freebsd-update(8) uses case-sensitive regexp to parse mirror list, which causes it to find no mirrors if ServerName capitalization is different from the one returned by host(1). This bug is also present in 9.3-RELEASE and possibly others. E.g.: ServerName is "update.FreeBSD.org" (default) `host -t srv host -t srv _http._tcp.update.FreeBSD.org' returns this: _http._tcp.update.freebsd.org has SRV record 1 40 80 update6.freebsd.org. _http._tcp.update.freebsd.org has SRV record 1 30 80 update2.freebsd.org. _http._tcp.update.freebsd.org has SRV record 1 35 80 update4.freebsd.org. _http._tcp.update.freebsd.org has SRV record 1 5 80 update3.freebsd.org. _http._tcp.update.freebsd.org has SRV record 1 50 80 update5.freebsd.org. freebsd-update uses sed(1) to parse this list: sed -nE "s/${MLIST} (has SRV record|server selection) //p" which returns nothing. It should look like this instead, because domain names are not case-sensitive: sed -nE "s/${MLIST} (has SRV record|server selection) //pi" -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197047-8>
