delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/19/00:20:06

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
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
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 <takashi DOT yano AT nifty DOT ne DOT jp>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT 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: <TYCPR01MB6818511B9957A9A1C1A0559A878F9@TYCPR01MB6818.jpnprd01.prod.outlook.com>
References: <TYCPR01MB6818607796F45A8DB98EF21B87899 AT TYCPR01MB6818 DOT jpnprd01 DOT prod DOT outlook DOT com>
<f80d2b2b-c187-5033-4813-44e3f8e15d6d AT laposte DOT net>
<TYCPR01MB6818511B9957A9A1C1A0559A878F9 AT TYCPR01MB6818 DOT jpnprd01 DOT prod DOT outlook DOT com>
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: "suzuki DOT masaomi AT fujitsu DOT com" <suzuki DOT masaomi AT fujitsu DOT com>,
"'soft-mpop-qqm AT ml DOT css DOT fujitsu DOT com'" <soft-mpop-qqm AT ml DOT css DOT fujitsu DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

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.

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019