Bug 586

Summary: Syntax error on local to local copy (escaping required)
Product: Portable OpenSSH Reporter: Luke Ross <lukeross>
Component: scpAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED WONTFIX    
Severity: minor    
Priority: P2    
Version: -current   
Hardware: All   
OS: Linux   

Description Luke Ross 2003-06-04 01:33:42 AEST
When trying to upload a file, I inadvertently missed off the trailing ':' to
make it remote copy, so scp attempted to local copy, using "exec cp".  However
scp didn't reescape the filenames:

$ scp /home/mp3/Kosheen\ -\ Catch\ \(original\).mp3 lukeross@1.2.3.4
sh: -c: line 1: syntax error near unexpected token `('
sh: -c: line 1: `exec cp /home/mp3/Kosheen - Catch (original).mp3 lukeross@1.2.3.4'
$
Comment 1 Ben Lindstrom 2003-06-04 02:10:27 AEST
This is the same behavior as rcp.  To change this may/will break existing 
scripts.
Comment 2 Damien Miller 2004-04-14 12:24:19 AEST
Mass change of RESOLVED bugs to CLOSED