bugzilla-daemon at bugzilla.mindrot.org
2010-Jul-06  15:00 UTC
[Bug 1791] New: Newlines in filenames are converted to ^J
https://bugzilla.mindrot.org/show_bug.cgi?id=1791
           Summary: Newlines in filenames are converted to ^J
           Product: Portable OpenSSH
           Version: 5.3p1
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: scp
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: jvoss at altsci.com
When copying a file with newlines (and probably many other characters)
to a server with scp, the newlines are converted to ^J. Since this is
not a direct copy, I consider it a bug. I do not suspect that it is a
feature though I have not checked yet which part of the code is causing
this. In Linux and *nix, all characters are possible in filenames
except null and slash. Unicode is one good reason for this.
jvoss at ASLinWS01:~$ env | grep LA
LANG=en_US.UTF-8
LANGUAGEjvoss at ASLinWS01:~$ scp 'waiting
for
what1.png' altsci.com:altsci/cell/uploads/
Enter passphrase for key '/home/jvoss/.ssh/id_dsa':
waiting\^Jfor\^Jwhat1.png     100%   50KB  49.8KB/s   00:00    
jvoss at dmitry:~/altsci/cell$ ls uploads/waiting*1.png
uploads/waiting\^Jfor\^Jwhat1.png
http://www.cell-game.com/uploads/waiting%0Afor%0Awhat1.png
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2010-Jul-06  22:20 UTC
[Bug 1791] Newlines in filenames are converted to ^J
https://bugzilla.mindrot.org/show_bug.cgi?id=1791
Darren Tucker <dtucker at zip.com.au> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dtucker at zip.com.au
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX
--- Comment #1 from Darren Tucker <dtucker at zip.com.au>  ---
Unfortunately this is an unfixable limitation of the scp (rcp) protocol
(it uses a newline to indicate the end of the file metadata).  Use sftp
if this bothers you.
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at bugzilla.mindrot.org
2011-Jan-24  01:33 UTC
[Bug 1791] Newlines in filenames are converted to ^J
https://bugzilla.mindrot.org/show_bug.cgi?id=1791
Damien Miller <djm at mindrot.org> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED
--- Comment #2 from Damien Miller <djm at mindrot.org> 2011-01-24 12:33:58
EST ---
Move resolved bugs to CLOSED after 5.7 release
-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.