version 1.301, 2018/07/03 10:59:35 |
version 1.302, 2018/07/09 21:20:26 |
|
|
session_pty_req(struct ssh *ssh, Session *s) |
session_pty_req(struct ssh *ssh, Session *s) |
{ |
{ |
u_int len; |
u_int len; |
int n_bytes; |
|
|
|
if (!auth_opts->permit_pty_flag || !options.permit_tty) { |
if (!auth_opts->permit_pty_flag || !options.permit_tty) { |
debug("Allocating a pty not permitted for this connection."); |
debug("Allocating a pty not permitted for this connection."); |
|
|
} |
} |
debug("session_pty_req: session %d alloc %s", s->self, s->tty); |
debug("session_pty_req: session %d alloc %s", s->self, s->tty); |
|
|
n_bytes = packet_remaining(); |
ssh_tty_parse_modes(ssh, s->ttyfd); |
tty_parse_modes(s->ttyfd, &n_bytes); |
|
|
|
if (!use_privsep) |
if (!use_privsep) |
pty_setowner(s->pw, s->tty); |
pty_setowner(s->pw, s->tty); |