Bug 13092

Summary: Fetch doesn't default to the correct http-port when no port is specifie d in the environment
Product: Base System Reporter: Paul.Hernaus <paul.hernaus>
Component: binAssignee: Dag-Erling Smørgrav <des>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Paul.Hernaus 1999-08-12 13:40:01 UTC
[~] paul@itchy> setenv HTTP_PROXY www-proxy.mpn.cp.philips.com
[~] paul@itchy> fetch http://www.freebsd.org/index.html
fetch: sendmsg: www-proxy.mpn.cp.philips.com: Can't assign requested address
[~] paul@itchy>

Fix: Apply the following patch against stable. Note that this also fixes a
missing dependency on fetch.h.

How-To-Repeat: 
See above
Comment 1 Dag-Erling Smørgrav freebsd_committer freebsd_triage 1999-08-12 14:24:07 UTC
Responsible Changed
From-To: freebsd-bugs->des

I'll handle it. 

Comment 2 des 1999-08-12 14:24:17 UTC
Paul.Hernaus@nl.origin-it.com writes:
> +#define DEFAULT_FTP_PORT 21
> +#define DEFAULT_HTTP_PORT 80

No, the correct fix is to use getservbyname() to obtain the port
numbers.

DES
-- 
Dag-Erling Smorgrav - des@flood.ping.uio.no
Comment 3 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2000-08-31 15:54:26 UTC
State Changed
From-To: open->closed

Fixed in 4.x and 5.x. 3.x is no longer supported.