From nobody@FreeBSD.org  Wed Dec  8 04:19:25 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 19191106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Dec 2010 04:19:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (unknown [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 08FAB8FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  8 Dec 2010 04:19:25 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id oB84JOp2075254
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 8 Dec 2010 04:19:24 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id oB84JO18075253;
	Wed, 8 Dec 2010 04:19:24 GMT
	(envelope-from nobody)
Message-Id: <201012080419.oB84JO18075253@red.freebsd.org>
Date: Wed, 8 Dec 2010 04:19:24 GMT
From: datastream <datastream.freecity@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: scp mistake file to directory
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         152909
>Category:       bin
>Synopsis:       scp mistake file to directory
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gavin
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 08 04:20:02 UTC 2010
>Closed-Date:    
>Last-Modified:  Wed Dec 08 15:13:36 UTC 2010
>Originator:     datastream
>Release:        9.0 current
>Organization:
163.ORG
>Environment:
FreeBSD datastream-laptop.people.163.org 9.0-CURRENT FreeBSD 9.0-CURRENT #15 r215942: Sun Nov 28 01:35:53 CST 2010     root@datastream-laptop.people.163.org:/usr/obj/usr/src/sys/G9laptop  amd64
>Description:
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.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: gavin 
State-Changed-When: Wed Dec 8 15:11:36 UTC 2010 
State-Changed-Why:  
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? 


Responsible-Changed-From-To: freebsd-amd64->gavin 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Wed Dec 8 15:11:36 UTC 2010 
Responsible-Changed-Why:  
Track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152909 
>Unformatted:
