diff options
author | Damien Miller <djm@mindrot.org> | 2000-04-16 12:31:48 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-04-16 12:31:48 +1000 |
commit | 5f05637b0ef7058d3ab2ff385251f73dcc9cb5f7 (patch) | |
tree | 443665fb58916f33c2f346aa3284a444d3352311 /session.c | |
parent | a664e870f27e6dc2c73f393e95a229abc527e0e6 (diff) |
- Reduce diff against OpenBSD source
- All OpenSSL includes are now unconditionally referenced as
openssl/foo.h
- Pick up formatting changes
- Other minor changed (typecasts, etc) that I missed
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1247,6 +1247,8 @@ session_pty_req(Session *s) | |||
1247 | /* Get window size from the packet. */ | 1247 | /* Get window size from the packet. */ |
1248 | pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); | 1248 | pty_change_window_size(s->ptyfd, s->row, s->col, s->xpixel, s->ypixel); |
1249 | 1249 | ||
1250 | /* XXX parse and set terminal modes */ | ||
1251 | xfree(term_modes); | ||
1250 | return 1; | 1252 | return 1; |
1251 | } | 1253 | } |
1252 | 1254 | ||
@@ -1286,6 +1288,7 @@ session_input_channel_req(int id, void *arg) | |||
1286 | success = 1; | 1288 | success = 1; |
1287 | } else if (strcmp(rtype, "exec") == 0) { | 1289 | } else if (strcmp(rtype, "exec") == 0) { |
1288 | char *command = packet_get_string(&len); | 1290 | char *command = packet_get_string(&len); |
1291 | packet_done(); | ||
1289 | if (s->ttyfd == -1) | 1292 | if (s->ttyfd == -1) |
1290 | do_exec_no_pty(s, command, s->pw); | 1293 | do_exec_no_pty(s, command, s->pw); |
1291 | else | 1294 | else |
@@ -1293,8 +1296,7 @@ session_input_channel_req(int id, void *arg) | |||
1293 | xfree(command); | 1296 | xfree(command); |
1294 | success = 1; | 1297 | success = 1; |
1295 | } else if (strcmp(rtype, "pty-req") == 0) { | 1298 | } else if (strcmp(rtype, "pty-req") == 0) { |
1296 | if (session_pty_req(s) > 0) | 1299 | success = session_pty_req(s); |
1297 | success = 1; | ||
1298 | } | 1300 | } |
1299 | } | 1301 | } |
1300 | if (strcmp(rtype, "window-change") == 0) { | 1302 | if (strcmp(rtype, "window-change") == 0) { |