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

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Wed Apr 4 20:12:51 EST 2007


http://bugzilla.mindrot.org/show_bug.cgi?id=1302

           Summary: scp failes to copy a file with newline
           Product: Portable OpenSSH
           Version: 4.3p2
          Platform: ix86
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: scp
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: zdenek at pytela.net


When copying a directory (scp -r) with a file containing \n
copying stops with cryptic message
protocol error: expected control record
Debug mode is more verbose about the cause:

Sink: : skipping, filename contains a newline
protocol error: expected control record
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
debug1: fd 1 clearing O_NONBLOCK
...
debug1: Exit status 1

First, newline is legal (although weird) character for a file. Second,
the message doesn't help to user find what happened. Third, the copying
is not skipping one file, but stops at all.




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