[Bug 1791] New: Newlines in filenames are converted to ^J

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jul 7 01:00:51 EST 2010


           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
jvoss at ASLinWS01:~$ scp 'waiting
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


Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list