ftp question

The following is the debug output of ftpd:

May 3 08:32:14 node15 syslogd: restart
May 03 08:32:39 nto ftpd[577552-1]: connection from 192.168.3.3 at Thu
May 3 08:32:39 2001
May 03 08:32:39 nto ftpd[577552-1]: <— 220
May 03 08:32:39 nto ftpd[577552-1]: node15 FTP server (Version 5.60)
ready.
May 03 08:32:39 nto ftpd[577552-1]: command: USER cdisplay^M
May 03 08:32:39 nto ftpd[577552-1]: <— 331
May 03 08:32:39 nto ftpd[577552-1]: Password required for cdisplay.
May 03 08:32:39 nto ftpd[577552-1]: command: PASS cdisplay^M
May 03 08:32:39 nto ftpd[577552-1]: <— 230
May 03 08:32:39 nto ftpd[577552-1]: User cdisplay logged in.
May 03 08:32:39 nto ftpd[577552-1]: FTP LOGIN FROM 192.168.3.3,
cdisplay
May 03 08:32:39 nto ftpd[577552-1]: command: mdtm shopvue.ini
May 03 08:32:39 nto ftpd[577552-1]: <— 213
May 03 08:32:39 nto ftpd[577552-1]: 20010503085005
May 03 08:32:39 nto ftpd[577552-1]: command:
May 03 08:32:39 nto ftpd[577552-1]: <— 500
May 03 08:32:39 nto ftpd[577552-1]: ‘’: command not understood.
May 03 08:32:39 nto ftpd[577552-1]: command:
May 03 08:32:39 nto ftpd[577552-1]: <— 500
May 03 08:32:39 nto ftpd[577552-1]: ‘’: command not understood.
May 03 08:32:39 nto ftpd[577552-1]: command: PORT 192,168,3,3,4,1^M
May 03 08:32:39 nto ftpd[577552-1]: <— 200
May 03 08:32:39 nto ftpd[577552-1]: PORT command successful.
May 03 08:32:39 nto ftpd[577552-1]: command: RETR shopvue.ini^M
May 03 08:32:39 nto ftpd[577552-1]: <— 150
***May 03 08:32:39 nto ftpd[577552-1]: Opening ASCII mode data
connection for shopvue.ini (128 bytes).
May 03 08:32:39 nto ftpd[577552-1]: <— 226
May 03 08:32:39 nto ftpd[577552-1]: Transfer complete.
May 03 08:32:39 nto ftpd[577552-1]: command: QUIT^M


Why does the ftp server used ASCII mode. I’ve always though it
default to binary, what got it to switch?

  • Mario

Previously, Mario Charest wrote in qdn.public.qnxrtp.applications:

Why does the ftp server used ASCII mode. I’ve always though it
default to binary, what got it to switch?

I was under the impression that the client makes that decision. The
standard UN*X ftp clients always defaulted to ASCII. More recent
clients, like ncftp, default to binary. There’s nothing in your ftpd
output that implies that the client made any explicit request for
mode, so now I’m beginning to doubt my information. How’s that for a
wishy-washy response?

Cheers,
Andrew