delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/18/22:41:03

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E356E3858D39
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=fujitsu.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=fujitsu.com
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple;
d=fujitsu.com; i=@fujitsu.com; q=dns/txt; s=fj1;
t=1658198420; x=1689734420;
h=from:to:cc:subject:date:message-id:references:
in-reply-to:content-transfer-encoding:mime-version;
bh=L2x4QL169LAjbpK6m1a13cRVLs5I6Zr8MOvlSaySxtk=;
b=dad1Ts5mRYqXRbeLiTfLroNqW41lr0dO9OHm5qwKnpsjMRTtkjASIYru
fU494CdDLJVoniZg5peMEqzWXqhjb26YS1Zh9nd3Eou5HHVgS2fGRiNE0
yHpggtEIy25DDg1wgk3qMC/ZY8nKehUELbGtDgzd2ssFo+oY/q6cR+UXG
HV5nffT42wlxNmLxM6QGhiuRoNxWlI7p+Zb/yL3HZiNPgMYWs7cJQPGXA
2+I1kGlIop34GT/c25FMem2c6Gr/Iiyw6xkMcw/KqBraSA6818vq28F7F
qrf2H6bdvrnrHZJQhMR9/mOLU/lTu3H5U6+NaSoa48nPFlxO+EeXYJKEE g==;
X-IronPort-AV: E=McAfee;i="6400,9594,10412"; a="60991923"
X-IronPort-AV: E=Sophos;i="5.92,282,1650898800"; d="scan'208";a="60991923"
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=Y6oiiWk0aq9eKgcSyGn7eTSbIlgKqWMxqFGNNuCgK9Vz/KLeuiD8tmkRrhfwfw/GqlLRXO6YYKNNG6dP2yLgravLi8I+rYFwYXTxIycFtn1Yc7wVbl0eYucmF/ywKa7BMWyGENWSkAb+HVYR6G6Nk/kiMcQQkQe6yppS42suRRs3qTA0A6C7JXPjv6mS7KrspOPBYL9Kp+0eQnXEOmNEKdEL31zEG6YwJCyMkuL9Pzi6aLIHEtvHy4mzo0occf7gd/6oQvv/Br/phtZKjEZ8fwglzVPOfKPofaUAN1x5Yn9gs9dglSF1n6Q9yOHqVL+GEA7L8Zt6Cw0RO71SGTlEmw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=L2x4QL169LAjbpK6m1a13cRVLs5I6Zr8MOvlSaySxtk=;
b=QwsXzmMtSQfxoSAP3f7IUHdpfGo3kp0QnzjjbthYtWnwDfpmL392XImiUJA2DHIyR6hzyXTxUSkKcmeyyqRmTnwllp+o4wLmxeEpvUDO4p4gyRqpIbNGhtv33aqr2274YGaGvWsqDf0rjqDq0QWgOiaZNpq4RxiLDp93W/8oewJO3CklizBvHRF/Ez2zgSJFO8AG3SLqY3tKka4dNTLKRut90S0Trhkr7rTRQWdbHT1XXXhh+iIqFGMfvDYUFiWdCxLXroNklAlIdWRfj8iJAw4vBJSUM76TVFkPrYdrWDeolKfZnW46b6x3ivQEW43CJ+niR6DNtHVNhNbu8nnZmg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com;
dkim=pass header.d=fujitsu.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=fujitsu.onmicrosoft.com; s=selector2-fujitsu-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=L2x4QL169LAjbpK6m1a13cRVLs5I6Zr8MOvlSaySxtk=;
b=Kxpb4GWWVcrh0pXuokYjsxWiz/6get2XUVhU+WkkNpv/R/TZfYjLNNU+NYnqQIE7dKzY8kEwRPx6l6OwtWWKhlOWaKWrC8qzySbXFKqB8eK1Ls+CmuSj+vl70DhaRnYG+ZvFsob65CULGDIo9r74iPaNlJV1Hbt90WjFxTnzCgA=
From: "suzuki DOT masaomi AT fujitsu DOT com" <suzuki DOT masaomi AT fujitsu DOT com>
To: "'cyrille DOT lefevre-lists AT laposte DOT net'" <cyrille DOT lefevre-lists AT laposte DOT net>,
"'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: RE: [soft-mpop-qqm:27201] Re: scp command fails to transfer file and
returns 1.
Thread-Topic: [soft-mpop-qqm:27201] Re: scp command fails to transfer file and
returns 1.
Thread-Index: AdiWi62jVeXnF3ElTvSG79UO+L3cGgCkhg4AAH68LPA=
Date: Tue, 19 Jul 2022 02:40:14 +0000
Message-ID: <TYCPR01MB6818511B9957A9A1C1A0559A878F9@TYCPR01MB6818.jpnprd01.prod.outlook.com>
References: <TYCPR01MB6818607796F45A8DB98EF21B87899 AT TYCPR01MB6818 DOT jpnprd01 DOT prod DOT outlook DOT com>
<f80d2b2b-c187-5033-4813-44e3f8e15d6d AT laposte DOT net>
In-Reply-To: <f80d2b2b-c187-5033-4813-44e3f8e15d6d@laposte.net>
Accept-Language: ja-JP, en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: =?utf-8?B?TVNJUF9MYWJlbF9hNzI5NWNjMS1kMjc5LTQyYWMtYWI0ZC0zYjBmNGZlY2Uw?=
=?utf-8?B?NTBfRW5hYmxlZD10cnVlOyBNU0lQX0xhYmVsX2E3Mjk1Y2MxLWQyNzktNDJh?=
=?utf-8?B?Yy1hYjRkLTNiMGY0ZmVjZTA1MF9TZXREYXRlPTIwMjItMDctMTlUMDI6Mzk6?=
=?utf-8?B?MDVaOyBNU0lQX0xhYmVsX2E3Mjk1Y2MxLWQyNzktNDJhYy1hYjRkLTNiMGY0?=
=?utf-8?B?ZmVjZTA1MF9NZXRob2Q9U3RhbmRhcmQ7IE1TSVBfTGFiZWxfYTcyOTVjYzEt?=
=?utf-8?B?ZDI3OS00MmFjLWFiNGQtM2IwZjRmZWNlMDUwX05hbWU9RlVKSVRTVS1SRVNU?=
=?utf-8?B?UklDVEVE4oCLOyBNU0lQX0xhYmVsX2E3Mjk1Y2MxLWQyNzktNDJhYy1hYjRk?=
=?utf-8?B?LTNiMGY0ZmVjZTA1MF9TaXRlSWQ9YTE5ZjEyMWQtODFlMS00ODU4LWE5ZDgt?=
=?utf-8?B?NzM2ZTI2N2ZkNGM3OyBNU0lQX0xhYmVsX2E3Mjk1Y2MxLWQyNzktNDJhYy1h?=
=?utf-8?B?YjRkLTNiMGY0ZmVjZTA1MF9BY3Rpb25JZD1mM2NlM2Y0NS1kMzY3LTQ2MzMt?=
=?utf-8?B?YjRhZS0yNjA3ZWYxOWIwZDc7IE1TSVBfTGFiZWxfYTcyOTVjYzEtZDI3OS00?=
=?utf-8?B?MmFjLWFiNGQtM2IwZjRmZWNlMDUwX0NvbnRlbnRCaXRzPTA=?=
x-securitypolicycheck: OK by SHieldMailChecker v2.6.5
x-shieldmailcheckermailid: b6d31b0272314753a3dff4c7a0ee5f81
authentication-results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=fujitsu.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0d577d01-48f0-4d86-6d3f-08da6930027d
x-ms-traffictypediagnostic: OSBPR01MB4295:EE_
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: sFO/L8sLgFtK5m34mhRnoOskBAVTLjcmvhmFd9bUfUfkke4XmvlHm8WSHh4QFTRdkDHUiPgYl/A7J8o3ARdVtkjxumC4GE5Q/IMijfszxw/1QyPVJ9YJlnX4UpZRYgz7baCUqFWpnVrocjSeO3j8cNNFk67dNAqCPr0s1DSA2WoddBD1ihD18ahRrieGTMtTF82agpUoTAeugVgS4LcBrfGzov7kN8TOW+SgDfTaDMMQxmr9qfPVOsVjoLSVYF1DorsGLxbZ+KUQAgE0JAbohB7u89j9AHkpINDMqYFN21sSC37LFCn9yXxamG896h/ThDjgC9ako7IrtOFo0jlUvJ25N9wRsBd0/uX0qKDvC4hAfc+hA8RS7QGPZRQ/2kShYHYL4zjRSx7i700FQt/kNTHczPDmnd+Rma5FBYRvA0YCJkPJCG6/2r7xteTy+Tad0rZNUPYQXBwcIo5BkK0ZcxupFh8EyBXAtombxbZ+Yb+E5VX6mfU8zSZI/keBw3sQQ/wIA4ytJUmGCXX+RrskVexmYcLqRuGn/xfCTaaIknNy/q783rvMtSkMo4pg3e9KSdk1yqoYqmUdoxuql5boq/cE5sMiPcngr8RMt80FYoaI+dVy61AHVLwHtne0qewCsyiSmPqiTtOs7ijZsNuBEArdly5Xgs6lpLN4uc3MkCs1Or3ZDV/xiAJJ5NAJnNc5MzNMimfA7RITBJHyth2y2Z+Up2puQa+KJisstxvewg/c6tcyieSAKTpSdMRGfxr3X/QvLx/uUej+OgUj5ydST9rU4efhtbzIL0ioXGY337uhUFk0bfy8598MWoObN2XVNeA8ca4BomGWcqSfxNO5lT/wsBnsKK8oXz/+Wx+mDTY=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:ja; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:TYCPR01MB6818.jpnprd01.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230016)(4636009)(396003)(366004)(39860400002)(376002)(346002)(136003)(8936002)(52536014)(33656002)(86362001)(76116006)(66946007)(4326008)(64756008)(8676002)(66446008)(66476007)(66556008)(38100700002)(110136005)(6506007)(38070700005)(55016003)(316002)(85182001)(82960400001)(53546011)(7696005)(9686003)(122000001)(26005)(41300700001)(107886003)(186003)(83380400001)(71200400001)(478600001)(5660300002)(2906002)(491001)(460985005);
DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?utf-8?B?K3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0Z0RWZWhOSFU0dTJIeFd5V0JhVGpIei9xclR2MkVLV1NUN0RSalpK?=
=?utf-8?B?RXdsWEpiWlhYTTFUM1dZeXAwNnJDRmh6RlAvaVh6WGtLUENrdzVIc2Rtd1VP?=
=?utf-8?B?c1k2V3hyVEN5UExLTnJmcUJNMHBYalVKVFpWZU5rRkFHM00vUFNCakdSbUVH?=
=?utf-8?B?a2toR2liWUVCMVhOZ3hzcnpNODZ5TWw4WWZRSjlUaEtxSW43SnlLZ01pbmEy?=
=?utf-8?B?OGVsNXNORlk4UnM2ZXlGeStkTFRYQU5ycEpjaGJnVk8ydXA3bjB3TGV5K0ZZ?=
=?utf-8?B?MUJLSnQ5NDF1SVc1SkIxeTZNQU1UeGdrTkQ4d1JPZEZaaXdTTElMbE1sMjg4?=
=?utf-8?B?RGxlZWFQOFlUNWlBRkNuSmdhQ2VsTE5XVUx0cVlsbVFCREg5U3k3d1cyRGRw?=
=?utf-8?B?blE9PQ==?=
MIME-Version: 1.0
X-OriginatorOrg: fujitsu.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: TYCPR01MB6818.jpnprd01.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 0d577d01-48f0-4d86-6d3f-08da6930027d
X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jul 2022 02:40:14.6842 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: a19f121d-81e1-4858-a9d8-736e267fd4c7
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: KkWs7uvUON324U02gW7P3QX7mA2dLwBpvqdYkLTPcfRnwyhDatgvW1BO6wK9EAlLy7UA1/DVv0/3rB9FcuYFIKeAkvLg1bp3UQ7TF/fIJto=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB4295
X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_50, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, KAM_ASCII_DIVIDERS, KAM_DMARC_NONE, RCVD_IN_MSPIKE_H2,
SPF_HELO_PASS, SPF_NONE, TXREP,
WEIRD_QUOTING autolearn=no autolearn_force=no version=3.4.6
X-Spam-Level: *
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: "'soft-mpop-qqm AT ml DOT css DOT fujitsu DOT com'" <soft-mpop-qqm AT ml DOT css DOT fujitsu DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 26J2f2IG005787

Cygwin Support Dear Representatives

Thank you very much for your reply.

>it seems your application is calling scp with " around the arguments, so, scp try to copy "/tmp/a" instead of just /tmp/a.

We analyzed our application again, internally, calling scp command is as follows.

 <Cygwinのインストールディレクトリ>\bin\scp.exe "/cygdrive//C/test/a" "root"@ホスト名:"\"/tmp/a\""

The scp command above runs successfully with the old version Cygwin(3.2.0),
but not with the the latest version Cygwin(3.3.5). 

<result of execution on command prompt>
=============================================
●the old version Cygwin(3.2.0)
---------------------------------
C:\Users\Administrator>C:\cygwin64\bin\scp.exe "/cygdrive//C/test/a" "root"@RJEL74JP:"\"/tmp/a\""
a                                                               100%   36KB   1.3MB/s   00:00

>echo %errorlevel%
0
---------------------------------
 →Successfully.

●the latest version Cygwin(3.3.5)
---------------------------------
C:\Users\Administrator>C:\cygwin64\bin\scp.exe "/cygdrive//C/test/a" "root"@RJEL74JP:"\"/tmp/a\""
scp: dest open ""/tmp/a"": No such file or directory
scp: failed to upload file /cygdrive//C/test/a to "/tmp/a"

>echo %errorlevel%
1
---------------------------------
 →Same error message as the scp command executed by our application.
=============================================
(*)execution on the Cygwin Bash Shell gets the same results.

Therefore, the arguments of the scp command are the same, 
but execution in the latest version Cygwin(3.3.5) has failed.
Can you tell me the reason why the execution results are different 
depending on the version of Cygwin?

Since the same problem occurs when execute the scp command 
on the command prompt or Cygwin Bash Shell,
I don't think sample program is needed anymore.



以降は日本語の文章です。
******************************************************************
Cygwinサポート ご担当様

ご協力、どうもありがとうございました。

>it seems your application is calling scp with " around the arguments, so, scp try to copy "/tmp/a" instead of just /tmp/a.

当方のアプリケーションプログラムを再度確認して、
内部的には下記のようにscpコマンドを実行しています。

 <Cygwinのインストールディレクトリ>\bin\scp.exe "/cygdrive//C/test/a" "root"@ホスト名:"\"/tmp/a\""

上記のscpコマンドは、旧バージョン(3.2.0)のCygwinでは正常に行われていますが、
最新バージョン(3.3.5)では正常に行われていません。

<コマンドプロンプトでの実行結果>
=============================================
●旧バージョン(3.2.0)のCygwin
---------------------------------
C:\Users\Administrator>C:\cygwin64\bin\scp.exe "/cygdrive//C/test/a" "root"@RJEL74JP:"\"/tmp/a\""
a                                                               100%   36KB   1.3MB/s   00:00

>echo %errorlevel%
0
---------------------------------
 →正常に行われています。

●最新バージョン(3.3.5)のCygwin
---------------------------------
C:\Users\Administrator>C:\cygwin64\bin\scp.exe "/cygdrive//C/test/a" "root"@RJEL74JP:"\"/tmp/a\""
scp: dest open ""/tmp/a"": No such file or directory
scp: failed to upload file /cygdrive//C/test/a to "/tmp/a"

>echo %errorlevel%
1
---------------------------------
 →アプリケーションにより実行したscpコマンドと同じエラーメッセージです。
=============================================
※Cygwin Bash Shellから実行したら同じ結果です。

よって、scpコマンドの引数が同じですが、最新バージョン(3.3.5)のCygwinでの
実行が失敗しています。
上記の様に、Cygwinのバージョンによって実行結果が異なる理由を
教えていただけませんでしょうか。

また、コマンドプロンプトやCygwin Bash Shellで、同じ現象が発生したため、
サンプルプログラムが不要だと思います。
******************************************************************

> -----Original Message-----
> From: Cyrille Lefevre <cyrille DOT lefevre-lists AT laposte DOT net>
> Sent: Saturday, July 16, 2022 11:10 PM
> To: Suzuki, Masaomi/鈴木 将臣 <suzuki DOT masaomi AT fujitsu DOT com>;
> 'cygwin AT cygwin DOT com' <cygwin AT cygwin DOT com>
> Cc: 'soft-mpop-qqm AT ml DOT css DOT fujitsu DOT com'
> <soft-mpop-qqm AT ml DOT css DOT fujitsu DOT com>
> Subject: [soft-mpop-qqm:27201] Re: scp command fails to transfer file and
> returns 1.
> 
> Le 13/07/2022 à 09:41, suzuki DOT masaomi AT fujitsu DOT com a écrit :
> > As a result of debugging our application program, the scp command returned
> the following message.
> >
> >  /usr/bin/scp: dest open ""/tmp/a"": No such file or directory
> >  /usr/bin/scp: failed to upload file /cygdrive//C/test/a to "/tmp/a"
> 
> Hi,
> 
> it seems your application is calling scp with " around the arguments, so, scp try
> to copy "/tmp/a" instead of just /tmp/a.
> 
> Regards,
> 
> /me
> --
> mailto:Cyrille DOT Lefevre-lists AT laposte DOT net


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019