the function is grantpt(), but where to put it?

Markus Friedl markus at openbsd.org
Fri Aug 30 23:04:43 EST 2002


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);



More information about the openssh-unix-dev mailing list