From nobody@FreeBSD.org  Tue Aug 14 00:05:18 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 7A61837B40D
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 14 Aug 2001 00:05:18 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f7E75IT89728;
	Tue, 14 Aug 2001 00:05:18 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200108140705.f7E75IT89728@freefall.freebsd.org>
Date: Tue, 14 Aug 2001 00:05:18 -0700 (PDT)
From: Craig Harvey <charvey@iprg.nokia.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Fetch - When no URL scheme given, fetch guesses wrong scheme.
X-Send-Pr-Version: www-1.0

>Number:         29695
>Category:       misc
>Synopsis:       Fetch - When no URL scheme given, fetch guesses wrong scheme.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    des
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 14 00:10:01 PDT 2001
>Closed-Date:    Wed Aug 15 19:04:23 PDT 2001
>Last-Modified:  Wed Aug 15 19:04:38 PDT 2001
>Originator:     Craig Harvey
>Release:        4.3
>Organization:
Nokia IPRG
>Environment:
FreeBSD oz-net-14.iprg.nokia.com 4.3-BETA FreeBSD 4.3-BETA #0: Wed Mar 21 15:31:16 EST 2001    root@oz-net-14.iprg.nokia.com:/usr/obj/OZNET14  i386

>Description:
In src/usr.bin.fetch/fetch.c, the fetch() function incorrectly guesses 
the URL scheme.  
>How-To-Repeat:
Call fetch with a schemeless URL.
>Fix:
When attempting to "guess" the scheme, put a '!' in front of the 
strncasecmp() calls.  The function returns 0 if the comparison is 
successful, thus the else if statement fails when it should succeed.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->des 
Responsible-Changed-By: dd 
Responsible-Changed-When: Tue Aug 14 00:30:36 PDT 2001 
Responsible-Changed-Why:  
Over to maintainer. 
DES: this is the bug you fixed in rev. 1.32.  It'd be nice to see the fix 
in 4.4.  If you don't have time to MFC it, let me know and I can do it for 
you. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29695 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Wed Aug 15 19:04:23 PDT 2001 
State-Changed-Why:  
Fixed, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29695 
>Unformatted:
