[Bug 483] New: scp issues "invalid user name" for a user name containing a blank

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Feb 1 12:02:46 EST 2003


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

           Summary: scp issues "invalid user name" for a user name
                    containing a blank
           Product: Portable OpenSSH
           Version: 3.5p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: scp
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: lazanoff at nas.nasa.gov


scp file "FirstName LastName"@domain.com: produces "invalid user name" but 
ssh "FirstName LastName"@domain.com works. I've seen this error with openssh 
3.5p1, with Irix scp v3.4 and on Solaris scp v3.0.2p1. The presence of a space 
is sufficient to produce the "invalid user name" diagnostic. Sorry but PC users 
often have user names of this form and probably a few Mac users, too.

scp.c contains function okname that issues the "invalid user name" but since it 
really doesn't check with the remote host, scp doesn't really know whether the 
name is OK anyway. Unless there's some other reason for doing this check, I 
recommend just doing away with this function.



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




More information about the openssh-unix-dev mailing list