Bug 1204

Summary: scp doesn't check that target is a directory
Product: Portable OpenSSH Reporter: Bradford C. Smith <bradford.smith>
Component: scpAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 4.2p1   
Hardware: All   
OS: All   

Description Bradford C. Smith 2006-06-28 23:57:56 AEST
If a, b, c and d are all local files and I execute:

scp a b c d

I expect scp to fail because d is not a directory.  Instead, scp executes:

cp a d
cp b d
cp c d

Overwriting d three times.
Comment 1 Tomas Mraz 2006-06-29 00:04:15 AEST
This bug was already fixed in 4.3p1.
Comment 2 Darren Tucker 2006-10-07 11:45:27 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.