Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 1998 13:05:11 -0700 (PDT)
From:      David Wolfskill <dhw@whistle.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/6647: ftpd: man page at variance with code (e.g., -a flag)
Message-ID:  <199805152005.NAA00469@shrimp.whistle.com>

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

>Number:         6647
>Category:       bin
>Synopsis:       ftpd: man page at variance with code (e.g., -a flag)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 15 13:10:00 PDT 1998
>Last-Modified:
>Originator:     David Wolfskill
>Organization:
Whistle Communications
>Release:        FreeBSD 2.2.6-RELEASE i386
>Environment:

	Vanilla FreeBSD 2.2.6, at least.

>Description:

	Man page for ftpd documents a "-a" flag (no argument required:

SYNOPSIS
       ftpd [ -d ] [ -l ] [ -ttimeout ] [ -Tmaxtimeout ] [ -a ]
       [ -A ] [ -L ] [ -i ] [ -I ] [ -o ] [ -O ]
...

       If the -a option is specified, the use of the ftpaccess(5)
       configuration file is enabled.

...
       The code, however, differs (see below for a demonstration):

        bind_address.s_addr = htonl(INADDR_ANY);
        while ((ch = getopt(argc, argv, "AdlDSURt:T:u:va:p:")) != -1) {
                switch (ch) {
...
                case 'a':
                        if (!inet_aton(optarg, &bind_address))
                                errx(1, "invalid address for -a");
                        break;
...

>How-To-Repeat:

pau-amma[7]% /usr/libexec/ftpd -a
ftpd: option requires an argument -- a
ftpd: unknown flag -a ignored
pau-amma[8]% 

>Fix:
	
Make appropriate changes to cause the code and the man page to be
self-consistent.  In the mean time, avoiding the -a flag seems prudent.
>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?199805152005.NAA00469>