Bug 586 - Syntax error on local to local copy (escaping required)
Summary: Syntax error on local to local copy (escaping required)
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: -current
Hardware: All Linux
: P2 minor
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-04 01:33 AEST by Luke Ross
Modified: 2004-04-14 12:24 AEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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