From owner-freebsd-bugs Fri May 15 13:13:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA25999 for freebsd-bugs-outgoing; Fri, 15 May 1998 13:13:56 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA25992 for ; Fri, 15 May 1998 13:13:55 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id NAA12166; Fri, 15 May 1998 13:10:00 -0700 (PDT) Received: from shrimp.whistle.com (s205m74.whistle.com [207.76.205.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA24671 for ; Fri, 15 May 1998 13:05:42 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by shrimp.whistle.com (8.8.8/8.8.7) id NAA00469; Fri, 15 May 1998 13:05:11 -0700 (PDT) (envelope-from dhw) Message-Id: <199805152005.NAA00469@shrimp.whistle.com> Date: Fri, 15 May 1998 13:05:11 -0700 (PDT) From: David Wolfskill Reply-To: dhw@whistle.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/6647: ftpd: man page at variance with code (e.g., -a flag) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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