public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Cc: "suzuki.masaomi@fujitsu.com" <suzuki.masaomi@fujitsu.com>,
	"'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 13:53:44 +0900	[thread overview]
Message-ID: <20220719135344.89ef0983649e42c88c844d4d@nifty.ne.jp> (raw)
In-Reply-To: <20220719131855.8d67cc495b7500ada5c125c0@nifty.ne.jp>

On Tue, 19 Jul 2022 13:18:55 +0900
Takashi Yano <takashi.yano@nifty.ne.jp> wrote:

> On Tue, 19 Jul 2022 02:40:14 +0000
> > 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.
> 
> In my environment, your test case also fails with cygwin 3.2.0.
> 
> C:\Users\yano>\cygwin64\bin\uname -a
> CYGWIN_NT-10.0-19044 HP-Z230 3.2.0-340.x86_64 2021-03-29 08:42 UTC x86_64 Cygwin
> 
> C:\Users\yano>\cygwin64\bin\scp "/home/yano/a" "yano"@server:"\"/tmp/a\""
> /usr/bin/scp: dest open ""/tmp/a"": No such file or directory
> /usr/bin/scp: failed to upload file /tmp/a to "/tmp/a"
> 
> The behaviour difference seems not due to cygwin version.

This seems to be behaviour change betweeen OpenSSH 8.x and 9.0.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

  reply	other threads:[~2022-07-19  4:54 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   ` [soft-mpop-qqm:27201] " suzuki.masaomi
2022-07-19  4:18     ` Takashi Yano
2022-07-19  4:53       ` Takashi Yano [this message]
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=20220719135344.89ef0983649e42c88c844d4d@nifty.ne.jp \
    --to=takashi.yano@nifty.ne.jp \
    --cc=cygwin@cygwin.com \
    --cc=soft-mpop-qqm@ml.css.fujitsu.com \
    --cc=suzuki.masaomi@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).