From nobody@FreeBSD.org  Mon Feb  6 19:20:09 2012
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 4DDE71065670
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Feb 2012 19:20:09 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 1C74D8FC16
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  6 Feb 2012 19:20:09 +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 q16JK8bo085377
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 6 Feb 2012 19:20:08 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q16JK87o085376;
	Mon, 6 Feb 2012 19:20:08 GMT
	(envelope-from nobody)
Message-Id: <201202061920.q16JK87o085376@red.freebsd.org>
Date: Mon, 6 Feb 2012 19:20:08 GMT
From: Eugen Konkov <kes-kes@yandex.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: scp could not copy files
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         164830
>Category:       misc
>Synopsis:       scp could not copy files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 06 19:30:10 UTC 2012
>Closed-Date:    Thu Feb 09 16:48:30 UTC 2012
>Last-Modified:  Thu Feb 09 16:48:30 UTC 2012
>Originator:     Eugen Konkov
>Release:        9-CURRENT
>Organization:
ISP FreeLine
>Environment:
>Description:
I try to copy file from mail directory
# ls -l 1328517293*
-rw-------  1 vmail  mail  14033 Feb  6 08:34 1328517293.M104652P74802.flux2,S=14033,W=14349:2,

# scp '1328517293.M104652P74802.flux2,S=14033,W=14349:2,' adm@10.1.1.1:/home/adm/in
ssh: Could not resolve hostname 1328517293.M104652P74802.flux2,S=14033,W=14349: hostname nor servname provided, or not known

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: Gary Palmer <gpalmer@freebsd.org>
To: Eugen Konkov <kes-kes@yandex.ru>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/164830: scp could not copy files
Date: Mon, 6 Feb 2012 15:08:54 -0500

 > -rw-------  1 vmail  mail  14033 Feb  6 08:34 1328517293.M104652P74802.flux2,S=14033,W=14349:2,
 > 
 > # scp '1328517293.M104652P74802.flux2,S=14033,W=14349:2,' adm@10.1.1.1:/home/adm/in
 > ssh: Could not resolve hostname 1328517293.M104652P74802.flux2,S=14033,W=14349: hostname nor servname provided, or not known
 
 Your file name has a : in it.  scp is treating the part before the colon
 as a hostname.  If you read scp(1) then you'll see:
 
      File names may contain a user and host specification to indicate that the
      file is to be copied to/from that host.  Local file names can be made
      explicit using absolute or relative pathnames to avoid scp treating file
      names containing `:' as host specifiers.  Copies between two remote hosts
      are also permitted.
 
 Try
 
 scp './1328517293.M104652P74802.flux2,S=14033,W=14349:2,' adm@10.1.1.1:/home/adm/in
 
 

From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= <kes-kes@yandex.ru>
To: Gary Palmer <gpalmer@freebsd.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re[2]: misc/164830: scp could not copy files
Date: Mon, 6 Feb 2012 23:22:17 +0200

 , Gary.
 
   6  2012 ., 22:08:54:
 
 GP> On Mon, Feb 06, 2012 at 07:20:08PM +0000, Eugen Konkov wrote:
 >> 
 >> >Number:         164830
 >> >Category:       misc
 >> >Synopsis:       scp could not copy files
 >> >Confidential:   no
 >> >Severity:       non-critical
 >> >Priority:       low
 >> >Responsible:    freebsd-bugs
 >> >State:          open
 >> >Quarter:        
 >> >Keywords:       
 >> >Date-Required:
 >> >Class:          sw-bug
 >> >Submitter-Id:   current-users
 >> >Arrival-Date:   Mon Feb 06 19:30:10 UTC 2012
 >> >Closed-Date:
 >> >Last-Modified:
 >> >Originator:     Eugen Konkov
 >> >Release:        9-CURRENT
 >> >Organization:
 >> ISP FreeLine
 >> >Environment:
 >> >Description:
 >> I try to copy file from mail directory
 >> # ls -l 1328517293*
 >> -rw-------  1 vmail  mail  14033 Feb  6 08:34 1328517293.M104652P74802.flux2,S=14033,W=14349:2,
 >> 
 >> # scp '1328517293.M104652P74802.flux2,S=14033,W=14349:2,' adm@10.1.1.1:/home/adm/in
 >> ssh: Could not resolve hostname 1328517293.M104652P74802.flux2,S=14033,W=14349: hostname nor servname provided, or not known
 
 GP> Your file name has a : in it.  scp is treating the part before the colon
 GP> as a hostname.  If you read scp(1) then you'll see:
 
 GP>      File names may contain a user and host specification to indicate that the
 GP>      file is to be copied to/from that host.  Local file names can be made
 GP>      explicit using absolute or relative pathnames to avoid scp treating file
 GP>      names containing `:' as host specifiers.  Copies between two remote hosts
 GP>      are also permitted.
 
 GP> Try
 
 GP> scp './1328517293.M104652P74802.flux2,S=14033,W=14349:2,' adm@10.1.1.1:/home/adm/in
 
 I understand that scp use ':' as delimeter to get hostname, but I
 think that just quoting will force scp do not look into name
 I forget about ./ sintax, Thank you. It works fine even without quoting
 scp ./1328517293.M104652P74802.flux2,S=14033,W=14349:2, adm@10.1.1.1:/home/adm/in
 
 Thank you.
 
 
 
 -- 
  ,
                            mailto:kes-kes@yandex.ru
 
State-Changed-From-To: open->closed 
State-Changed-By: jh 
State-Changed-When: Thu Feb 9 16:48:28 UTC 2012 
State-Changed-Why:  
This is a documented feature rather than a bug. 

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