public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "suzuki.masaomi@fujitsu.com" <suzuki.masaomi@fujitsu.com>
To: "'cyrille.lefevre-lists@laposte.net'"
	<cyrille.lefevre-lists@laposte.net>,
	 "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Cc: "'soft-mpop-qqm@ml.css.fujitsu.com'" <soft-mpop-qqm@ml.css.fujitsu.com>
Subject: RE: [soft-mpop-qqm:27201] Re: scp command fails to transfer file and returns 1.
Date: Tue, 19 Jul 2022 02:40:14 +0000	[thread overview]
Message-ID: <TYCPR01MB6818511B9957A9A1C1A0559A878F9@TYCPR01MB6818.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <f80d2b2b-c187-5033-4813-44e3f8e15d6d@laposte.net>

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.lefevre-lists@laposte.net>
> Sent: Saturday, July 16, 2022 11:10 PM
> To: Suzuki, Masaomi/鈴木 将臣 <suzuki.masaomi@fujitsu.com>;
> 'cygwin@cygwin.com' <cygwin@cygwin.com>
> Cc: 'soft-mpop-qqm@ml.css.fujitsu.com'
> <soft-mpop-qqm@ml.css.fujitsu.com>
> Subject: [soft-mpop-qqm:27201] Re: scp command fails to transfer file and
> returns 1.
> 
> Le 13/07/2022 à 09:41, suzuki.masaomi@fujitsu.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.Lefevre-lists@laposte.net


  reply	other threads:[~2022-07-19  2:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-13  7:41 suzuki.masaomi
2022-07-13 14:38 ` Takashi Yano
2022-07-16 14:10 ` Cyrille Lefevre
2022-07-19  2:40   ` suzuki.masaomi [this message]
2022-07-19  4:18     ` [soft-mpop-qqm:27201] " Takashi Yano
2022-07-19  4:53       ` Takashi Yano
2022-07-20  1:42         ` suzuki.masaomi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=TYCPR01MB6818511B9957A9A1C1A0559A878F9@TYCPR01MB6818.jpnprd01.prod.outlook.com \
    --to=suzuki.masaomi@fujitsu.com \
    --cc=cygwin@cygwin.com \
    --cc=cyrille.lefevre-lists@laposte.net \
    --cc=soft-mpop-qqm@ml.css.fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).