Bug 1362 - Scp should not follow links
Summary: Scp should not follow links
Status: CLOSED WONTFIX
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: scp (show other bugs)
Version: 4.7p1
Hardware: Other Linux
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-15 21:37 AEST by Alex
Modified: 2008-04-04 10:00 AEDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2007-09-15 21:37:01 AEST
Scp should not follow links, specially directory links. This can lead to creating loops and copying files several times.
Comment 1 Damien Miller 2007-12-21 12:30:08 AEDT
Unfortunately we cannot change the behaviour of scp. There is no way to extend the protocol it uses in a backwards-compatible manner and we can't change the default behaviour because it would break user's scripts.

I suggest that you look at using tar or rsync over ssh if you want to avoid this.
Comment 2 Damien Miller 2008-04-04 10:00:52 AEDT
Close resolved bugs after release.