Fetch cannot retreive a ftp directory listing; attempts to do so result in a ftp protocol error. Fix: Context diffs to fetch/ftp.c and lib/libftpio.c are appended. This is mostly a matter of detecting that the filename is empty and doing a LIST instead of a RETR. (Note that when doing a directory listing, you should use the -o flag.) RCS file: RCS/ftpio.c,v retrieving revision 1.1 RCS file: RCS/ftp.c,v retrieving revision 1.1 How-To-Repeat: pig 62 % fetch -v ftp://ftp.ee.lbl.gov/ Sending: USER anonymous ee.lbl.gov FTP server ready. Guest login ok, send ident as password. Sending: PASS leres@pig.ee.lbl.gov Guest login ok, access restrictions apply. Your mileage may vary. Sending: TYPE I Type set to I. Sending SIZE 'SIZE ': command not understood. Sending MDTM 'MDTM ': command not understood. fetch: : cannot get remote modification time Sending: PORT 131,243,1,91,18,188 PORT command successful. Sending: RETR 'RETR ': command not understood. fetch: ftp://ftp.ee.lbl.gov/: FTP error: fetch: Syntax error, command unrecognized Sending: QUIT Goodbye.
Responsible Changed From-To: freebsd-bugs->des fetch(1) is mine.
State Changed From-To: open->closed Closed at originator's request.