Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Aug 2001 00:05:18 -0700 (PDT)
From:      Craig Harvey <charvey@iprg.nokia.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/29695: Fetch - When no URL scheme given, fetch guesses wrong scheme.
Message-ID:  <200108140705.f7E75IT89728@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         29695
>Category:       misc
>Synopsis:       Fetch - When no URL scheme given, fetch guesses wrong scheme.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 14 00:10:01 PDT 2001
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108140705.f7E75IT89728>