| Summary: | scp failes to copy a file with newline | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Zdenek Pytela <zdenek> |
| Component: | scp | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED DUPLICATE | ||
| Severity: | minor | CC: | djm |
| Priority: | P2 | ||
| Version: | 4.3p2 | ||
| Hardware: | ix86 | ||
| OS: | Linux | ||
|
Description
Zdenek Pytela
2007-04-04 20:12:49 AEST
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. *** This bug has been marked as a duplicate of bug 891 *** Close resolved bugs after release. |