From owner-freebsd-amd64@freebsd.org Wed Oct 12 10:14:01 2016 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4A0A1C0D067 for ; Wed, 12 Oct 2016 10:14:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2F73BE5A for ; Wed, 12 Oct 2016 10:14:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u9CAE0wj077850 for ; Wed, 12 Oct 2016 10:14:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 213411] freebsd-update does not form a valid MLIST when host -t srv returns non caps reply Date: Wed, 12 Oct 2016 10:14:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: mamalos@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 10:14:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213411 Bug ID: 213411 Summary: freebsd-update does not form a valid MLIST when host -t srv returns non caps reply Product: Base System Version: 10.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: mamalos@gmail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Created attachment 175655 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D175655&action= =3Dedit Patch that just makes the sed statement case insensitive. freebsd-update fetch fails to find a valid mirror list on some FreeBSD syst= ems (tested with 10.1-RELEASE and 10.2-RELEASE), by returning: Looking up update.FreeBSD.org mirrors... none found. Fetching metadata signature for 10.2-RELEASE from update.FreeBSD.org... Reason: Depending on the DNS server a FreeBSD box asks, the answer to a query like: host -tsrv _http._tcp.update.FREEBSD.org can be either: _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. _http._tcp.update.freebsd.org has SRV record 1 35 80 update4.freebsd.org. _http._tcp.update.freebsd.org has SRV record 1 40 80 update6.freebsd.org. or: _http._tcp.update.FREEBSD.org has SRV record 1 50 80 update5.freebsd.org. _http._tcp.update.FREEBSD.org has SRV record 1 40 80 update6.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 35 80 update4.freebsd.org. freebsd-update script forms a list of available mirror servers by executing such a query and by running various sed commands on its output. If the reply does not contain FREEBSD in caps, the produced list turns out to be empty - which is wrong, since the reply is not empty (and since FQDNs are case insensitive). This happens because the SERVERNAME variable of freebsd-update takes its value (update.FREEBSD.org) from /etc/freebsd-update.conf, which h= as caps in it. It's strange that some DNS servers reply with caps when asked with caps and others don't, but this is a different issue... A patch that makes the sed statement case insensitive is provided. Another possible patch that would resolve the issue would be to change /etc/freebsd-update.conf's record to use lower case, but IMHO, the script is wrong because FQDNs are case insensitive and it doesn't take it into accoun= t. --=20 You are receiving this mail because: You are on the CC list for the bug.=