[BACK]Return to session.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/session.c between version 1.301 and 1.302

version 1.301, 2018/07/03 10:59:35 version 1.302, 2018/07/09 21:20:26
Line 1567 
Line 1567 
 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.");
Line 1602 
Line 1601 
         }          }
         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);

Legend:
Removed from v.1.301  
changed lines
  Added in v.1.302