[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.117 and 1.118

version 1.117, 2001/04/30 11:18:52 version 1.118, 2001/05/04 23:47:34
Line 1037 
Line 1037 
 int  int
 ssh_session2_command(void)  ssh_session2_command(void)
 {  {
         int id, window, packetmax;          Channel *c;
         int in, out, err;          int window, packetmax, in, out, err;
   
         if (stdin_null_flag) {          if (stdin_null_flag) {
                 in = open(_PATH_DEVNULL, O_RDONLY);                  in = open(_PATH_DEVNULL, O_RDONLY);
Line 1065 
Line 1065 
                 window *= 2;                  window *= 2;
                 packetmax *=2;                  packetmax *=2;
         }          }
         id = channel_new(          c = channel_new(
             "session", SSH_CHANNEL_OPENING, in, out, err,              "session", SSH_CHANNEL_OPENING, in, out, err,
             window, packetmax, CHAN_EXTENDED_WRITE,              window, packetmax, CHAN_EXTENDED_WRITE,
             xstrdup("client-session"), /*nonblock*/0);              xstrdup("client-session"), /*nonblock*/0);
           if (c == NULL)
                   fatal("ssh_session2_command: channel_new failed");
   
 debug("channel_new: %d", id);          debug3("ssh_session2_command: channel_new: %d", c->self);
   
         channel_open(id);          channel_open(c->self);
         channel_register_callback(id, SSH2_MSG_CHANNEL_OPEN_CONFIRMATION,          channel_register_callback(c->self, SSH2_MSG_CHANNEL_OPEN_CONFIRMATION,
              ssh_session2_callback, (void *)0);               ssh_session2_callback, (void *)0);
   
         return id;          return c->self;
 }  }
   
 int  int

Legend:
Removed from v.1.117  
changed lines
  Added in v.1.118