[Bug 264757] [PATCH] usr.bin/fetch: Show correct port number in -vv output
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264757] fetch: Show correct port number in -vv output"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264757] fetch: Show correct port number in -vv output"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264757] fetch: Show correct port number in -vv output"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264757] fetch: Show correct port number in -vv output"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 264757] fetch: Show correct port number in -vv output"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Jun 2022 20:37:34 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264757 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=234771&action=edit 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 ``` -- You are receiving this mail because: You are the assignee for the bug.