diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2008-06-30 12:16:03 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2008-06-30 12:16:03 +0000 |
commit | ed393475d2e8b7d4ee1721fab8b228eb4003203e (patch) | |
tree | 6d7fa091232db32d247e8f751bcc323ddefe3e03 | |
parent | 0be49183e197b7d2ae5e6dce449b69c35e7957f7 (diff) |
only send eow@openssh.com notifications for session channels; ok! markus@
-rw-r--r-- | usr.bin/ssh/nchan.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/nchan.c b/usr.bin/ssh/nchan.c index 1b62edc9c2a..7d3a92f93db 100644 --- a/usr.bin/ssh/nchan.c +++ b/usr.bin/ssh/nchan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nchan.c,v 1.59 2008/05/09 16:21:13 markus Exp $ */ +/* $OpenBSD: nchan.c,v 1.60 2008/06/30 12:16:02 djm Exp $ */ /* * Copyright (c) 1999, 2000, 2001, 2002 Markus Friedl. All rights reserved. * @@ -332,7 +332,8 @@ chan_write_failed2(Channel *c) case CHAN_OUTPUT_OPEN: case CHAN_OUTPUT_WAIT_DRAIN: chan_shutdown_write(c); - chan_send_eow2(c); + if (strcmp(c->ctype, "session") == 0) + chan_send_eow2(c); chan_set_ostate(c, CHAN_OUTPUT_CLOSED); break; default: |