From edwin@mavetju.org  Sat Dec  8 05:01:05 2001
Return-Path: <edwin@mavetju.org>
Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141])
	by hub.freebsd.org (Postfix) with ESMTP id 1573D37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Dec 2001 05:01:05 -0800 (PST)
Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141])
	by topaz.mdcc.cx (Postfix) with ESMTP id 3FB392B6B9
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  8 Dec 2001 14:00:58 +0100 (CET)
Received: by k7.mavetju.org (Postfix, from userid 1001)
	id 60042901; Sun,  9 Dec 2001 00:00:48 +1100 (EST)
Message-Id: <20011208130048.60042901@k7.mavetju.org>
Date: Sun,  9 Dec 2001 00:00:48 +1100 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: strange behaviour of distfiles survey software
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         32601
>Category:       ports
>Synopsis:       strange behaviour of distfiles survey software
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    fenner
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 08 05:10:07 PST 2001
>Closed-Date:    Sat Dec 8 10:45:04 PST 2001
>Last-Modified:  Tue Dec 18 13:40:01 PST 2001
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.4-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju.org 4.4-RELEASE FreeBSD 4.4-RELEASE #2: Sat Nov 10 21:31:47 EST 2001 edwin@k7.mavetju.org:/usr/src/sys/compile/k7 i386

http://people.freebsd.org/~fenner/portsurvey/games.html#xvmines

>Description:

According to the url, the fetch failed. But... If you try to fetch
it, it does it without problems.

The ftp-server the software is on automaticly places you in /pub.
The software checks one directory each. The first "cd pub" fails.
The first check should be "cd /pub", the second should be "cd X11"

>How-To-Repeat:

See URL and output of make in games/xvmines

>Fix:

The first check should be "cd /pub", the second should be "cd X11".
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->fenner 
Responsible-Changed-By: petef 
Responsible-Changed-When: Sat Dec 8 06:01:24 PST 2001 
Responsible-Changed-Why:  
Over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32601 
State-Changed-From-To: open->closed 
State-Changed-By: fenner 
State-Changed-When: Sat Dec 8 10:45:04 PST 2001 
State-Changed-Why:  
The distfile survey follows RFC 1738's definition of an FTP URL. 
If you want the first CWD to be "/pub", then the URL must 
start /%2fpub/... . 

The distfile survey also tries to mirror fetch(1)'s behavior. 
Unfortunately, fetch(1) got broken 16 months ago to make this 
a valid URL. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=32601 

From: Edwin Groothuis <edwin@mavetju.org>
To: fenner@FreeBSD.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/32601: strange behaviour of distfiles survey software
Date: Mon, 10 Dec 2001 10:56:16 +1100

 On Sat, Dec 08, 2001 at 10:52:36AM -0800, fenner@FreeBSD.org wrote:
 > Synopsis: strange behaviour of distfiles survey software
 > 
 > State-Changed-From-To: open->closed
 > State-Changed-By: fenner
 > State-Changed-When: Sat Dec 8 10:45:04 PST 2001
 > State-Changed-Why: 
 > The distfile survey follows RFC 1738's definition of an FTP URL.
 > If you want the first CWD to be "/pub", then the URL must
 > start /%2fpub/... .
 > 
 > The distfile survey also tries to mirror fetch(1)'s behavior.
 > Unfortunately, fetch(1) got broken 16 months ago to make this
 > a valid URL.
 
 Can you please tell me how the distfile survey reacts on a double
 / in that path-part:
 
     ftp://ftp.csd.uch.gr//pub/X11/games/
 
 Because either fetch or the ftpd doesn't correctly interpret the
 %2f part:
 
   CWD /%2fpub/X11/games..                                                    
   550 /%2fpub/X11/games: No such file or directory...                        
 
 If the distfile survey program correctly uses the // part, then
 the problem is solved.
 
 Edwin
 
 -- 
 Edwin Groothuis   |              Personal website: http://www.MavEtJu.org
 edwin@mavetju.org |           Interested in MUDs? Visit Fatal Dimensions:
 ------------------+                       http://www.FatalDimensions.org/

From: Bill Fenner <fenner@research.att.com>
To: edwin@mavetju.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: ports/32601: strange behaviour of distfiles survey software
Date: Tue, 18 Dec 2001 13:35:07 -0800

 >Can you please tell me how the distfile survey reacts on a double
 >/ in that path-part:
 >
 >    ftp://ftp.csd.uch.gr//pub/X11/games/
 
 It ignores it; RFC 1738 says that the right thing to do in that
 case is send the FTP command "CWD " but all FTP servers I've
 experienced consider that a syntax error.
 
 >Because either fetch or the ftpd doesn't correctly interpret the
 >%2f part:
 
 It's fetch, and it's a bug (see PR bin/32619).
 
   Bill
>Unformatted:
