don't go down the HAVE_DEV_PTMX road (WAS: Re: the function is grantpt(), but where to put it?)

Toni L. Harbaugh-Blackford harbaugh at ncifcrf.gov
Fri Aug 30 23:26:01 EST 2002


I unset HAVE_OPENPTY, so that the HAVE_DEV_PTMX section
with grantpt() would be executed.

*THEN* I still get the same 'Error in terminal setup', *plus* now I get
kicked out, just like in openssh-3.4p1 with the patch applied.

grantpt() in sshpty.c did not generate an error, so I guess I have to
investigate something else causing the 'Error in terminal setup' message.

On Fri, 30 Aug 2002, Markus Friedl wrote:

  > On Fri, Aug 30, 2002 at 08:34:48AM -0400, Toni L. Harbaugh-Blackford wrote:
  > > 
  > > On tru64, grantpt() is the function to use to take ownership of
  > > a terminal.  But where should it go in the code?  It has to apply to
  > > the master pseudoterminal device, but that isn't passed to setup_sia();
  > > 
  > > Where is the output of mm_answer_pty() received?
  > 
  > in mm_pty_allocate (and pty_allocate).
  > 
  > mm_answer_pty should setup the ownership, see
  > 	pty_setowner(authctxt->pw, s->tty);
  > 

-----------------------------------------------------------------------
Toni Harbaugh-Blackford                     harbaugh at nciaxp.ncifcrf.gov
AlphaServer 8400 System Administrator
SAIC/NCI Frederick Advanced Biomedical Computing Center




More information about the openssh-unix-dev mailing list