Bug 152909 - scp mistake file to directory
Summary: scp mistake file to directory
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-08 04:20 UTC by kevin
Modified: 2019-05-07 19:44 UTC (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 kevin 2010-12-08 04:20:02 UTC
datastream@datastream-laptop:~/test> file t
t: ASCII English text, with overstriking
datastream@datastream-laptop:~/test> mv t nginx 
datastream@datastream-laptop:~/test> scp nginx hosta:
scp: ./nginx: Is a directory
datastream@datastream-laptop:~> mv nginx t 
datastream@datastream-laptop:~> scp t hosta:
t                                             100%  419     0.4KB/s   00:00 

the world in svn r215942.
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2010-12-08 15:11:36 UTC
State Changed
From-To: open->feedback

Hi, 

I suspect that the problem is not that scp believes that the locak file is 
a directory, but that there is already a directory called "nginx" on the 
remote server.  Can you confirm that this is the case please? 


Comment 2 Gavin Atkinson freebsd_committer freebsd_triage 2010-12-08 15:11:36 UTC
Responsible Changed
From-To: freebsd-amd64->gavin

Track
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:37 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 4 Ed Maste freebsd_committer 2019-05-07 19:44:25 UTC
scp reports 'not a regular file' for me in both cases (file/directory already existing on the server or not) so I presume this is an issue only with older scp