OpenSSH Port to Lynxos 4

Ben Lindstrom mouring at etoh.eviladmin.org
Wed Jul 14 13:32:46 EST 2004



On Tue, 13 Jul 2004, Gilbert Tsang wrote:

> I am working on a port of 3.8.1p1 to LynxOs 4.
>

I guess the first few questions should be:

1. What changes have you made to the ssh client?
2. What changes have you made to the sftp client?

> The problem I'm encountering now is on "sftp": the symptom is that after
> password authentication, the call to fgets() (sftp.c, line 1186) by sftp
> client returns NULL and thus the client exit before the user can enter any
> command. fgets() eventually call read() and the call fails because of an
> errno of 0x2 (ENOENT). At this point I'm quite puzzled at what's happening
> as it seem the forked ssh program has access to stdin (as it was able to get
> the entered password) but not the parent sftp client program that interacts
> with user (sftp.c line 1240)?
>

could see see a ktrace (or the equiv) around the place where the sftp>
prompt is displayed.  We should see something like:

28753 sftp     RET   write 41/0x29
 28753 sftp     CALL  write(0x1,0x13000,0x6)
 28753 sftp     GIO   fd 1 wrote 6 bytes
       "sftp> "
 28753 sftp     RET   write 6
 28753 sftp     CALL  read(0,0x23000,0x10000)
 28753 sftp     GIO   fd 0 read 5 bytes
       "quit
       "
 28753 sftp     RET   read 5
 28753 sftp     CALL  close(0x3)


I'm interested to see if it is different.  And how.

Also do you have HAVE_SETVBUF set in your config.h?  If it is set, try
unsetting it and recompiling sftp.

I'm suspecting lynxos doesn't like how we are setting up the input buffer.

That is about all I can think of right off hand.

- Ben




More information about the openssh-unix-dev mailing list