[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.99 and 1.100

version 1.99, 2001/03/01 02:29:04 version 1.100, 2001/03/01 22:46:37
Line 918 
Line 918 
   
         id = packet_get_int();          id = packet_get_int();
         len = buffer_len(&command);          len = buffer_len(&command);
         len = MAX(len, 900);          if (len > 900)
                   len = 900;
         packet_done();          packet_done();
         if (type == SSH2_MSG_CHANNEL_FAILURE)          if (type == SSH2_MSG_CHANNEL_FAILURE)
                 fatal("Request for subsystem '%.*s' failed on channel %d",                  fatal("Request for subsystem '%.*s' failed on channel %d",
Line 991 
Line 992 
                         debug("Sending command: %.*s", len, buffer_ptr(&command));                          debug("Sending command: %.*s", len, buffer_ptr(&command));
                         channel_request_start(id, "exec", 0);                          channel_request_start(id, "exec", 0);
                 }                  }
                 packet_put_string(buffer_ptr(&command), len);                  packet_put_string(buffer_ptr(&command), buffer_len(&command));
                 packet_send();                  packet_send();
         } else {          } else {
                 channel_request(id, "shell", 0);                  channel_request(id, "shell", 0);

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100