9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] ssh patch
@ 2003-04-14  1:20 Richard C Bilson
  2003-04-15 19:43 ` Russ Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Richard C Bilson @ 2003-04-14  1:20 UTC (permalink / raw)
  To: 9fans

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-04-15 20:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-14  1:20 [9fans] ssh patch Richard C Bilson
2003-04-15 19:43 ` Russ Cox
2003-04-15 19:53   ` Mike Fletcher
2003-04-15 20:16     ` William Josephson

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).