From nobody Sat Jun 18 20:37:34 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 66BDD85DB44 for ; Sat, 18 Jun 2022 20:37:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LQSQR12gQz556l for ; Sat, 18 Jun 2022 20:37:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 00B4C1B4AE for ; Sat, 18 Jun 2022 20:37:35 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 25IKbYlf004746 for ; Sat, 18 Jun 2022 20:37:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 25IKbYnV004745 for bugs@FreeBSD.org; Sat, 18 Jun 2022 20:37:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264757] [PATCH] usr.bin/fetch: Show correct port number in -vv output Date: Sat, 18 Jun 2022 20:37:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mallorya@fastmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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 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 List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655584655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=m5UJYH0TsJvAVl4lZQ7zG+jhtlIWmuHMIB95w7pPmas=; b=YCWlyc7783AwoLjEpXbzmPwFMwVKb6NAh6YrR1oMOWHO1WQAayd0D9bmkCO+dqp+sANvYm d2PiM+cNx2BgVijchWbChpSzmmVwawXuMYMEh5jtDHrJaG36s7OVMxpVkYGnBgCHWHgoz+ oisoI4f547g/theIRz+A7iDJ6TFwfe+hjlyepYDxbSZPP2P35DWWajJV7uSrWY71Z9Yctv MXwrl9BBZAPUIsmJXGIeHYJrS9CZDPMq49xT2PyOjgiFXL7ePcpgr6AflKuZOwoMPNqpVT 8oQlYdccPsMn4cL0gw+GOZ5ep1J0TtDF8O5qDNydZRrg4cukcVrZbjA+XxQzQg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655584655; a=rsa-sha256; cv=none; b=K5KltQbcoNDxC4nClWdzRhHk47/cwl0BYgA3ocuG2prxfHfMmBgWZeK8xvYuRt3oCpzXzG x9jWRuZndTY98Zkq6vtV5tmjtfUCLdo0Vb66A78QFq93js2vGJHsVK7dAKIvu0Qvc4Mrrv KczlJ4PMW/nia4ZKQwb+yOCH+NNG5KUKV0bb1K5v4CdRoiCWa7qiJwWUBtSebS5UmhOi7S rwzR5UyLo6BwQcz9Fq4OEeggLnTyMFF+b2cbQhytp5W/2xs/YjG258F9x8TOE2peYKrfa4 rN72z9fwad2coxK5r9HiqWdSHgipTb+LLTXGrxv8U827OqcKpkuvHrP8U7iCew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264757 Bug ID: 264757 Summary: [PATCH] usr.bin/fetch: Show correct port number in -vv output Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: mallorya@fastmail.com Created attachment 234771 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D234771&action= =3Dedit usr.bin/fetch: Show correct port number in -vv output The code in libfetch only sets the port number in `-vv` output when there's= a `:` before the path component. This patch sets the port number based on the= URL scheme. Old behavior: ``` % fetch -vv https://www.freebsd.org/ scheme: "https" user: "" password: "" host: "www.freebsd.org" port: "0" document: "/" ---> www.freebsd.org:443 ``` New behavior: ``` % fetch -vv https://www.freebsd.org/ scheme: "https" user: "" password: "" host: "www.freebsd.org" port: "443" document: "/" ---> www.freebsd.org:443 ``` --=20 You are receiving this mail because: You are the assignee for the bug.=