From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by sourceware.org (Postfix) with ESMTPS id 2B73D3858D39 for ; Tue, 19 Jul 2022 04:54:25 +0000 (GMT) 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 Received: from HP-Z230 (ak044095.dynamic.ppp.asahi-net.or.jp [119.150.44.95]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 26J4riTD008282; Tue, 19 Jul 2022 13:53:44 +0900 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 To: "'cygwin@cygwin.com'" Cc: "suzuki.masaomi@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. Message-Id: <20220719135344.89ef0983649e42c88c844d4d@nifty.ne.jp> In-Reply-To: <20220719131855.8d67cc495b7500ada5c125c0@nifty.ne.jp> References: <20220719131855.8d67cc495b7500ada5c125c0@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2022 04:54:29 -0000 On Tue, 19 Jul 2022 13:18:55 +0900 Takashi Yano 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. > > > >  \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). > > > > > > ============================================= > > ●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