*BSD News Article 92088


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!nsw1.news.telstra.net!news.telstra.net!news-out.internetmci.com!newsfeed.internetmci.com!howland.erols.net!blackbush.xlink.net!isar.de!photogrammetrie.de!newsmaster
From: mehldau@photogrammetrie.de (Gerhard Mehldau)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: ftpd -U -- illegal option?
Date: 25 Mar 1997 19:04:25 GMT
Organization: Photogrammetrie GmbH
Lines: 25
Message-ID: <5h97jp$i1b@muenchen.photogrammetrie.de>
NNTP-Posting-Host: muenchen.photogrammetrie.de
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37846

Hello world,

in order to test compatibility with a particular ftp client,
I configured inetd to invoke ftp with the '-U' option, which
according to the man page is supposed to use the old data port
range (1024 to 4999).

When I tried to ftp to the machine, ftpd quit with an error
message along the lines of '-U:  illegal option'.  Looking
at the source code quickly showed the problem:  there's a
compile-time option which allows either the '-S' or the '-U'
option, but not both.  That was easy enough to fix, but I'm
still wondering whether there's a reasoning behind this
(and if so, what it is).

Anyone know?

Gerhard

BTW:  And, of course, this should be documented in the man page...
---------------------------------------------------------------------------
    Gerhard Mehldau            http://www.photogrammetrie.de
    Photogrammetrie GmbH       mailto:mehldau@photogrammetrie.de
    Anzinger Str. 5            phone: +49 (89) 43 69 2-1 64
    81671 Munich, Germany      fax:   +49 (89) 43 69 2-1 00