Bug 1204 - scp doesn't check that target is a directory
Summary: scp doesn't check that target is a directory
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 4.2p1
Hardware: All All
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-28 23:57 AEST by Bradford C. Smith
Modified: 2006-10-07 11:45 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 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.