X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2B73D3858D39
Authentication-Results: sourceware.org;
 dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 26J4riTD008282
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
 s=dec2015msa; t=1658206424;
 bh=69SBVj46hr2bNYupkP4mfFCVsKscJVxgrq2dvCVrdfw=;
 h=Date:From:To:Cc:Subject:In-Reply-To:References:From;
 b=mHrqNe9gDMvcte8h6wljaOPE6gIj8oi6cu7qzWgVweeKk+8yOE+Bw0ZtuKmwV3/6f
 QahXRk/KhGSjdanZ4aAKbqpsVOPaz0J7ze6b6V9lAU3mUXas+4lzyeSE5WBXZc1itM
 ptk4uaObkvDB2KiwTXn88qUdoAxs3XCiuwbF3+oEf3X8Og6cVis0N0degkJHpRKtuC
 6x+xfV/LyoAwTmtF37XqrZ36ddfn+mjT3oj2jTrSyXiDUFnoKuVTurSDXwYSuEY+iO
 QRxAny9CjEXaTdQzbf75skHlHn/zlzykwdS3ceqL943N5ms0q3lUpa9ucRZcjCt0GX
 h+DtE+eUnEtzg==
X-Nifty-SrcIP: [119.150.44.95]
Date: Tue, 19 Jul 2022 13:53:44 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: Re: [soft-mpop-qqm:27201] Re: scp command fails to transfer file
 and returns 1.
Message-Id: <20220719135344.89ef0983649e42c88c844d4d@nifty.ne.jp>
In-Reply-To: <20220719131855.8d67cc495b7500ada5c125c0@nifty.ne.jp>
References: <TYCPR01MB6818607796F45A8DB98EF21B87899@TYCPR01MB6818.jpnprd01.prod.outlook.com>
 <f80d2b2b-c187-5033-4813-44e3f8e15d6d@laposte.net>
 <TYCPR01MB6818511B9957A9A1C1A0559A878F9@TYCPR01MB6818.jpnprd01.prod.outlook.com>
 <20220719131855.8d67cc495b7500ada5c125c0@nifty.ne.jp>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_ASCII_DIVIDERS, NICE_REPLY_A,
 RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP,
 WEIRD_QUOTING autolearn=no autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Cc: "suzuki.masaomi@fujitsu.com" <suzuki.masaomi@fujitsu.com>,
        "'soft-mpop-qqm@ml.css.fujitsu.com'" <soft-mpop-qqm@ml.css.fujitsu.com>
Content-Type: text/plain; charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

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.
> > 
> > $B!!(B<Cygwin$B$N%$%s%9%H!<%k%G%#%l%/%H%j(B>\bin\scp.exe "/cygdrive//C/test/a" "root"@$B%[%9%HL>(B:"\"/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>
> > =============================================
> > $B!|(Bthe 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
> > ---------------------------------
> > $B!!"*(BSuccessfully.
> 
> 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>

-- 
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
