Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 alpha 4/15/85; site ucbvax.ARPA
Path: utzoo!watmath!clyde!burl!ulysses!ucbvax!tcp-ip
From: tcp-ip@ucbvax.ARPA
Newsgroups: fa.tcp-ip
Subject: FTP and "SITE UNIX"
Message-ID: <8509@ucbvax.ARPA>
Date: Wed, 26-Jun-85 08:11:55 EDT
Article-I.D.: ucbvax.8509
Posted: Wed Jun 26 08:11:55 1985
Date-Received: Thu, 27-Jun-85 07:44:17 EDT
Sender: daemon@ucbvax.ARPA
Organization: University of California at Berkeley
Lines: 19

From: decwrl!sun!guy@BERKELEY (Guy Harris)

I don't know if anybody's answered this, but...

The 4.2BSD "ftp" doesn't send a "SITE UNIX" command, but the 3Com UNET
version (and CCI's 4.2BSD version, for historical reasons you don't really
want to know about) does.  If I remember correctly, it sends out a "SITE
UNIX" command and, if the response is a positive completion (first digit 2),
it sends out a "TYPE I" command to put the other side into image mode.  The
intent behind this, I assume, was to permit naive users to use FTP to move
files between UNIX machines without having to remember to go into image mode
if they were transferring binary files.  Unfortunately, this wreaks havoc if
you're transferring ASCII files from machines other than 8-bit-byte ASCII
machines.

The best thing to do is reject the command; then those FTPs won't turn on
image mode.

	Guy Harris