summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--channels.c10
-rw-r--r--session.c6
3 files changed, 16 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 77d7739dc..0cca9d1e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
120080616
2 - (dtucker) OpenBSD CVS Sync
3 - dtucker@cvs.openbsd.org 2008/06/16 13:22:53
4 [session.c channels.c]
5 Rename the isatty argument to is_tty so we don't shadow
6 isatty(3). ok markus@
7
120080615 820080615
2 - (dtucker) [configure.ac] Enable -fno-builtin-memset when using gcc. 9 - (dtucker) [configure.ac] Enable -fno-builtin-memset when using gcc.
3 - OpenBSD CVS Sync 10 - OpenBSD CVS Sync
@@ -4399,4 +4406,4 @@
4399 OpenServer 6 and add osr5bigcrypt support so when someone migrates 4406 OpenServer 6 and add osr5bigcrypt support so when someone migrates
4400 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 4407 passwords between UnixWare and OpenServer they will still work. OK dtucker@
4401 4408
4402$Id: ChangeLog,v 1.5019 2008/06/15 21:59:23 djm Exp $ 4409$Id: ChangeLog,v 1.5020 2008/06/16 13:29:18 dtucker Exp $
diff --git a/channels.c b/channels.c
index b1e544519..64c1ce76d 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.281 2008/06/15 20:06:26 djm Exp $ */ 1/* $OpenBSD: channels.c,v 1.282 2008/06/16 13:22:53 dtucker Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -221,7 +221,7 @@ channel_lookup(int id)
221 */ 221 */
222static void 222static void
223channel_register_fds(Channel *c, int rfd, int wfd, int efd, 223channel_register_fds(Channel *c, int rfd, int wfd, int efd,
224 int extusage, int nonblock, int isatty) 224 int extusage, int nonblock, int is_tty)
225{ 225{
226 /* Update the maximum file descriptor value. */ 226 /* Update the maximum file descriptor value. */
227 channel_max_fd = MAX(channel_max_fd, rfd); 227 channel_max_fd = MAX(channel_max_fd, rfd);
@@ -237,7 +237,7 @@ channel_register_fds(Channel *c, int rfd, int wfd, int efd,
237 c->efd = efd; 237 c->efd = efd;
238 c->extended_usage = extusage; 238 c->extended_usage = extusage;
239 239
240 if ((c->isatty = isatty) != 0) 240 if ((c->isatty = is_tty) != 0)
241 debug2("channel %d: rfd %d isatty", c->self, c->rfd); 241 debug2("channel %d: rfd %d isatty", c->self, c->rfd);
242 c->wfd_isatty = isatty || isatty(c->wfd); 242 c->wfd_isatty = isatty || isatty(c->wfd);
243 243
@@ -742,13 +742,13 @@ channel_register_filter(int id, channel_infilter_fn *ifn,
742 742
743void 743void
744channel_set_fds(int id, int rfd, int wfd, int efd, 744channel_set_fds(int id, int rfd, int wfd, int efd,
745 int extusage, int nonblock, int isatty, u_int window_max) 745 int extusage, int nonblock, int is_tty, u_int window_max)
746{ 746{
747 Channel *c = channel_lookup(id); 747 Channel *c = channel_lookup(id);
748 748
749 if (c == NULL || c->type != SSH_CHANNEL_LARVAL) 749 if (c == NULL || c->type != SSH_CHANNEL_LARVAL)
750 fatal("channel_activate for non-larval channel %d.", id); 750 fatal("channel_activate for non-larval channel %d.", id);
751 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock, isatty); 751 channel_register_fds(c, rfd, wfd, efd, extusage, nonblock, is_tty);
752 c->type = SSH_CHANNEL_OPEN; 752 c->type = SSH_CHANNEL_OPEN;
753 c->local_window = c->local_window_max = window_max; 753 c->local_window = c->local_window_max = window_max;
754 packet_start(SSH2_MSG_CHANNEL_WINDOW_ADJUST); 754 packet_start(SSH2_MSG_CHANNEL_WINDOW_ADJUST);
diff --git a/session.c b/session.c
index d692bc709..93babf957 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: session.c,v 1.240 2008/06/15 20:06:26 djm Exp $ */ 1/* $OpenBSD: session.c,v 1.241 2008/06/16 13:22:53 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 3 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved 4 * All rights reserved
@@ -2285,7 +2285,7 @@ session_input_channel_req(Channel *c, const char *rtype)
2285} 2285}
2286 2286
2287void 2287void
2288session_set_fds(Session *s, int fdin, int fdout, int fderr, int isatty) 2288session_set_fds(Session *s, int fdin, int fdout, int fderr, int is_tty)
2289{ 2289{
2290 if (!compat20) 2290 if (!compat20)
2291 fatal("session_set_fds: called for proto != 2.0"); 2291 fatal("session_set_fds: called for proto != 2.0");
@@ -2298,7 +2298,7 @@ session_set_fds(Session *s, int fdin, int fdout, int fderr, int isatty)
2298 channel_set_fds(s->chanid, 2298 channel_set_fds(s->chanid,
2299 fdout, fdin, fderr, 2299 fdout, fdin, fderr,
2300 fderr == -1 ? CHAN_EXTENDED_IGNORE : CHAN_EXTENDED_READ, 2300 fderr == -1 ? CHAN_EXTENDED_IGNORE : CHAN_EXTENDED_READ,
2301 1, isatty, CHAN_SES_WINDOW_DEFAULT); 2301 1, is_tty, CHAN_SES_WINDOW_DEFAULT);
2302} 2302}
2303 2303
2304/* 2304/*