From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by sourceware.org (Postfix) with ESMTPS id E9FDF3858D39 for ; Tue, 19 Jul 2022 04:19:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E9FDF3858D39 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-01.nifty.com with ESMTP id 26J4ItGX012869; Tue, 19 Jul 2022 13:18:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 26J4ItGX012869 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1658204335; bh=0FHOS66QYAVypuqXj0dRfHKMGabggzXlGkNH1riQS6A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=v5bAmml1StsvaCXlmq129KjmDud7mw/tqknmqFmZjWyXzM6IGAOFEXCnB5ysm9lm3 TAKmVEQSiw3vgH/ZWP5EFxgJN5KdtSlcvHqWk5CJxtiJTP0Mm3OCES9PSsupQTjkbm F1wkm62abgNdbXHcEPqsh6TBhWaw9KkWTga/cVt725JgHIgEm6jQ45uGYOQc0EfGKe Sjd5ktN8u/Zaw3m4Vp3HjSkr/zpm3zPDIjK7lbDiqYo9i0piQ+M87Py5stpAXYcfMV JsXpzGwNyGD32pglauX69/dT+fTYOIsXVa+JPXDbiIeEOHFz/2qEkr2A4bToS6KnRM iAr0zcwngMhhA== X-Nifty-SrcIP: [119.150.44.95] Date: Tue, 19 Jul 2022 13:18:55 +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: <20220719131855.8d67cc495b7500ada5c125c0@nifty.ne.jp> In-Reply-To: References: 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:19:26 -0000 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. -- Takashi Yano