[Bug 197047] freebsd-update fails to parse mirror list
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jan 24 09:01:23 UTC 2015
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 at FreeBSD.org
Reporter: dronmbi at 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.
More information about the freebsd-bugs
mailing list