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

Diff for /src/usr.bin/ssh/ssh.c between version 1.42 and 1.43

version 1.42, 2000/03/22 09:55:10 version 1.43, 2000/03/23 21:52:02
Line 171 
Line 171 
         struct stat st;          struct stat st;
         struct passwd *pw, pwcopy;          struct passwd *pw, pwcopy;
         int interactive = 0, dummy;          int interactive = 0, dummy;
           int have_pty = 0;
         uid_t original_effective_uid;          uid_t original_effective_uid;
         int plen;          int plen;
   
Line 661 
Line 662 
   
                 /* Read response from the server. */                  /* Read response from the server. */
                 type = packet_read(&plen);                  type = packet_read(&plen);
                 if (type == SSH_SMSG_SUCCESS)                  if (type == SSH_SMSG_SUCCESS) {
                         interactive = 1;                          interactive = 1;
                 else if (type == SSH_SMSG_FAILURE)                          have_pty = 1;
                   } else if (type == SSH_SMSG_FAILURE)
                         log("Warning: Remote host failed or refused to allocate a pseudo tty.");                          log("Warning: Remote host failed or refused to allocate a pseudo tty.");
                 else                  else
                         packet_disconnect("Protocol error waiting for pty request response.");                          packet_disconnect("Protocol error waiting for pty request response.");
Line 791 
Line 793 
         }          }
   
         /* Enter the interactive session. */          /* Enter the interactive session. */
         exit_status = client_loop(tty_flag, tty_flag ? options.escape_char : -1);          exit_status = client_loop(have_pty, tty_flag ? options.escape_char : -1);
   
         /* Close the connection to the remote host. */          /* Close the connection to the remote host. */
         packet_close();          packet_close();

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43