[net.micro] Perils of Public Domain Software - P

jbn@wdl1.UUCP (05/11/85)

     Sounds like a known bug in the old UNET implementation of FTP;
either he's running UNET on his 11/44 or somebody plagarized the UNET code
and perpetuated the bug.

For FTP maintainers:
     The proper solution is to have a ``byte'' mode in your user FTP; this
should put you in "TYPE L 8" mode for transfers and operate locally as in
``binary'' mode.  Note, by the way, that directory operations (LIST and NLIST)
must be performed in ASCII mode and some systems enforce this.  So the right
way to do this is to keep track in your user FTP of what mode the user has
selected (``ascii'', ``binary'', or ``byte'') and also keep track of what
TYPE command was last sent to the server.  Initially, the server is by
spec in "TYPE A" (ASCII) mode.  So before each transfer, if the server's mode
differs from the user's mode, send the appropriate TYPE command, and before
each NLIST or LIST command, send a "TYPE A" if the previous server mode was
something else.

     With all this installed, users should be aware that transfers of byte
oriented files from non byte oriented systems should be in ``byte'' mode.
Without this installed, the described kludge with the QUOTE command will
work.

					John Nagle