[comp.sys.next] dir & ls in ftpd under 1.0

lane@sumex-aim.stanford.edu (Christopher Lane) (10/06/89)

Under 0.9, 'dir' under ftp on the NeXT didn't work, though 'ls' did.  Under 1.0,
'dir' works fine but 'ls' returns results that, for all intents and purposes,
are randomly ordered (was 'dir' fixed at the expense of 'ls'?).  This appears to
be a problem in ftpd as when using ftp to non-NeXTs, 'ls' works fine and fails
when using ftp into the cube from a non-NeXT host.

Can someone verify this behaviour at another site so I know its not something in
our configuration?  Thanks!

A (somewhat edited) transcript showing the behavior follows.

- Christopher


ftp> cd /
250 CWD command successful.
ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 1144
-rw-rw-rw-  1 root     wheel        596 Oct  5 10:38 .places
drwxr-xr-x  2 root     wheel       1024 Oct  5 08:02 LocalApps
drwxr-xr-x  5 root     wheel       1024 Oct  4 13:36 LocalLibrary
drwxr-xr-x  5 root     wheel       1024 Oct  5 08:02 NextApps
drwxr-xr-x  6 root     wheel       1024 Oct  4 13:36 NextDeveloper
drwxr-xr-x 11 root     wheel       1024 Oct  4 13:36 NextLibrary
drwxr-xr-x  2 root     wheel       2048 Oct  4 13:37 bin
lrwxrwxrwx  1 root     wheel         11 Oct  5 08:07 dev -> private/dev
drwxrwxrwx  2 root     wheel       1024 Oct  5 09:14 disk
lrwxrwxrwx  1 root     wheel         11 Oct  5 08:07 etc -> private/etc
drwxr-xr-x  2 root     wheel       1024 Oct  4 13:37 lib
drwxr-xr-x  2 root     wheel       8192 Oct  5 08:05 lost+found
lrwxrwxrwx  1 root     wheel          9 Oct  5 08:07 mach -> $BOOTFILE
-r-xr-xr-x  2 root     wheel     562868 Oct  4 14:46 odmach
drwxrwxr-x 12 root     staff       1024 Oct  5 09:26 private
-r-xr-xr-x  2 root     wheel     562868 Oct  4 14:46 sdmach
lrwxrwxrwx  1 root     wheel         11 Oct  5 08:07 tmp -> private/tmp
drwxr-xr-x 16 root     wheel       1024 Oct  4 13:37 usr
lrwxrwxrwx  1 root     wheel          4 Oct  5 09:14 vmunix -> mach
226 Transfer complete.
1364 bytes received in 1.59 seconds (0.84 Kbytes/s)
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
lost+found
mach
etc
dev
tmp
usr
bin
private
NextApps
lib
NextDeveloper
NextLibrary
LocalApps
LocalLibrary
disk
odmach
sdmach
vmunix
.places
226 Transfer complete.
152 bytes received in 0.02 seconds (6.48 Kbytes/s)
ftp>

-------