[Bug 1302] scp failes to copy a file with newline

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Apr 4 21:26:26 EST 2007


------- Comment #1 from dtucker at zip.com.au  2007-04-04 21:26 -------
This is basically an unfixable limitation of the scp protocol.  The
header pretty much just "filename size modes\n" and when the filename
has a newline in it the protocol breaks.

You could escape the newlines (which I think I have a patch for
somewhere) but then the complaint becomes "scp changed my filename".

About the best that could be done is to bail or skip the file with a
"don't do that, then" error when someone tries to copy a file with a
newline embedded in the name.

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the openssh-bugs mailing list