9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard C Bilson <rcbilson@plg2.math.uwaterloo.ca>
To: 9fans@cse.psu.edu
Subject: [9fans] ssh patch
Date: Sun, 13 Apr 2003 21:20:05 -0400	[thread overview]
Message-ID: <200304140120.VAA06550@plg2.math.uwaterloo.ca> (raw)

I've been having some trouble when piping files to unix systems via
ssh.  I was finding that a number of EOT characters (^D) were being
appended to the file.  Investigating, I discovered that ssh.c can send
multiple eof messages at end-of-file.  I don't know enough about the
protocol to know if this behavior should be allowed, but avoiding the
excess messages fixes my problem.

I don't know what the preferred form for patches is -- I was expecting to
use 'diff -c', but that's not happening, so here's a straight diff:

term% diff -n /sys/src/cmd/ssh/ssh.c ssh.c
/sys/src/cmd/ssh/ssh.c:548 a ssh.c:549,550
> 			else
> 				continue;

(this is in function "fromstdin", just after the break after the test
"++eof > 32")

- Richard


             reply	other threads:[~2003-04-14  1:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-14  1:20 Richard C Bilson [this message]
2003-04-15 19:43 ` Russ Cox
2003-04-15 19:53   ` Mike Fletcher
2003-04-15 20:16     ` William Josephson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200304140120.VAA06550@plg2.math.uwaterloo.ca \
    --to=rcbilson@plg2.math.uwaterloo.ca \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).