From owner-freebsd-bugs Tue Aug 14 0:10:15 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 14AFE37B40E for ; Tue, 14 Aug 2001 00:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7E7A1l90974; Tue, 14 Aug 2001 00:10:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7A61837B40D for ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/29695: Fetch - When no URL scheme given, fetch guesses wrong scheme. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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