From edwin@mavetju.org  Thu Jun 14 04:09:37 2007
Return-Path: <edwin@mavetju.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 8EFC316A468
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Jun 2007 04:09:37 +0000 (UTC)
	(envelope-from edwin@mavetju.org)
Received: from mail4out.barnet.com.au (mail4.barnet.com.au [202.83.178.125])
	by mx1.freebsd.org (Postfix) with ESMTP id 40C5613C43E
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Jun 2007 04:09:36 +0000 (UTC)
	(envelope-from edwin@mavetju.org)
Received: by mail4out.barnet.com.au (Postfix, from userid 1001)
	id 29A1B37DA1F; Thu, 14 Jun 2007 14:09:35 +1000 (EST)
Received: from mail4auth.barnet.com.au (mail4.barnet.com.au [202.83.178.125])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mail4.barnet.com.au (Postfix) with ESMTP id E85904226B1
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Jun 2007 14:09:34 +1000 (EST)
Received: from k7.mavetju (k7.mavetju.org [10.251.1.18])
	by mail4auth.barnet.com.au (Postfix) with ESMTP id 8C0AB37D991
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Jun 2007 14:09:34 +1000 (EST)
Received: by k7.mavetju (Postfix, from userid 1001)
	id 3E59AAB; Thu, 14 Jun 2007 14:09:34 +1000 (EST)
Message-Id: <20070614040934.3E59AAB@k7.mavetju>
Date: Thu, 14 Jun 2007 14:09:34 +1000 (EST)
From: Edwin Groothuis <edwin@mavetju.org>
Reply-To: Edwin Groothuis <edwin@mavetju.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: ftpchroot(5) / ftpusers(5) doesn't do globbing
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         113669
>Category:       bin
>Synopsis:       ftpchroot(5) / ftpusers(5) doesn't do globbing
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 14 04:10:03 GMT 2007
>Closed-Date:    
>Last-Modified:  Tue Jun 19 01:00:01 GMT 2007
>Originator:     Edwin Groothuis
>Release:        FreeBSD 6.2-RELEASE-p4 i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu Apr 26 17:55:55 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/SMP i386


>Description:

ftpchroot(5) and ftpusers(5) say:

    The syntax of each line is:
	    userglob[:groupglob][@host] [directive [class]]

    These elements are:
	    userglob	matched against the user name, using fnmatch(3) glob
			matching (e.g, `f*').


But that function isn't used anywhere in the src/libexec/ftpd, nor
can I find any evidence in the checkuser() funtion that it some
kind of globbing is done.

>How-To-Repeat:
>Fix:

I'm not sure how the manpage and the sourcecode of ftpd relate at
this moment.
>Release-Note:
>Audit-Trail:

From: Brian Mitchell <bem@pobox.com>
To: bug-followup@FreeBSD.org, edwin@mavetju.org
Cc:  
Subject: Re: bin/113669: ftpchroot(5) / ftpusers(5) doesn't do globbing
Date: Mon, 18 Jun 2007 20:15:11 -0400

 While it's true that src/libexec/ftpd does not do globbing as described 
 in the man page, the man page is actually referring to 
 src/contrib/likemftpd/src (src/libexec/lukemftpd). Perhaps the man page 
 could be clearer that this only occurs for the lukemftpd, but it does do 
 globbing if you are running that ftpd.
 
 

From: Edwin Groothuis <edwin@mavetju.org>
To: Brian Mitchell <bem@pobox.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/113669: ftpchroot(5) / ftpusers(5) doesn't do globbing
Date: Tue, 19 Jun 2007 10:52:57 +1000

 On Mon, Jun 18, 2007 at 08:15:11PM -0400, Brian Mitchell wrote:
 > While it's true that src/libexec/ftpd does not do globbing as described 
 > in the man page, the man page is actually referring to 
 > src/contrib/likemftpd/src (src/libexec/lukemftpd). Perhaps the man page 
 > could be clearer that this only occurs for the lukemftpd, but it does do 
 > globbing if you are running that ftpd.
 
 That's an interesting intertwingle (in case that is not a proper
 english word: the messy combination of two big plants growing against
 the wall) of projects...
 
 man lukeftpd gives:
 FTPD(8)                 FreeBSD System Manager's Manual                FTPD(8)
 
 NAME
      ftpd -- Internet File Transfer Protocol server
 [...]
 FreeBSD 6.2                     August 4, 2005                     FreeBSD 6.2
 
 
 man ftpd givess:
 FTPD(8)                 FreeBSD System Manager's Manual                FTPD(8)
 
 NAME
      ftpd -- Internet File Transfer Protocol server
 [...]
 FreeBSD 6.2                    January 21, 2006                    FreeBSD 6.2
 
 
 I'm not yet sure on how to resolve this...
 
 Except by mentioning that ports/ftp/lukemftp is about to be axed
 in favour of ports/ftp/tnftp, which might be outdated based on the
 contents of the mastersite:
 
 -r--r--r--  1 1101  netbsd  313915 Jun 25  2005 tnftp-20050625.tar.gz
 -r--r--r--  1 1101  netbsd  178638 Aug 10  2004 tnftpd-20040810.tar.gz
 -r--r--r--  1 1101  netbsd  187164 Dec  4  2006 tnftpd-20061204.tar.gz
 -r--r--r--  1 1101  netbsd  187602 Dec 18  2006 tnftpd-20061217.tar.gz
 
 What is wisdom these days....
 
 Edwin
 
 -- 
 Edwin Groothuis      |            Personal website: http://www.mavetju.org
 edwin@mavetju.org    |              Weblog: http://www.mavetju.org/weblog/
>Unformatted:
