delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/07/18/11:23:12

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 55E913858D28
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=ttimo.net
Authentication-Results: sourceware.org; spf=none smtp.mailfrom=ttimo.net
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=ttimo-net.20210112.gappssmtp.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=hvHJpUB8/+fJnhKLMjEwP+/s+WXKLrv9hCi+hWjTl6c=;
b=ED3Akzyi5Hm3R5W7qLSYEPFmEXAKsW/sJiGaYTcDE2J7jnmQ5FI1VQKfU2MHMRcctE
pcXfuOiZYfJWQCq7tgbNjScBW8iufb5x59NGfWO9YjcaRU4UPUb7Vnk2fMHmwBptVhWr
thv3Ebjm2xVqaY/bmCITNB2Xa2Kk9jrWbMQz+sLa0jrDBvMnilKPHP//R3XvCCSQImEr
jVYXChzx3DJ9X4Qh8mNbNlBYD3cJslqReVnt48NxVtLWcuUpY1/GbzQWbvQ96+5wRQ18
lMjrNYJIa7bQf60XokEM2SYug0pE2VHOHo4NiNrKeYUcIx2ya5eyTfJUVJCzHVDrg2DO
4AAg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=hvHJpUB8/+fJnhKLMjEwP+/s+WXKLrv9hCi+hWjTl6c=;
b=RCAY+o1NQHcsMQSC7qwxcUwyi91AwzDFIyKazLvFO4tLDRWKgC7DPQI9CoJvabEacG
nYx9vMO/EAo7uR1eT3zIUJprcc+hmTWi/che3DBa6a3wS4KHHODtnl4jfu/KE8eQY5/R
g43ygLK+wlrkR80/cCvoDcn6MMiUAVLHk78n7ACUjjB/2hRFxaZ5ClAARTm8psjbW5de
plTdLFvE6OwSP2cG8vINi3ClltrXP+4vTtlCCEo+HSeygIjnBWorzBP6p9NqW6KRa803
UfPR3kjKd/7EcsNKUMmv4RaOAy6/apQdmTGlpvbu8v/DWPtbvxCRE54t2pTUJtVLmAyV
8Zfw==
X-Gm-Message-State: AJIora9ssJvaZdyikaTQ5ohi8psONpiVTJyFetzo1p0ITpJTTfXj93ox
7ZHXr+lBn3D0Xap7NjJEwkk8yMCJM59wGyztwmJ1M0IYIvqfDg==
X-Google-Smtp-Source: AGRyM1tzeDfPjlR60ZsGqX1376FIaBo2AXNXcLYC5OQ4TWBDbtBnLZxDcU1CXYFXmfvqLOrri5xcwQ8+Jih56XAGshg=
X-Received: by 2002:a17:903:245:b0:16b:9c49:6b1c with SMTP id
j5-20020a170903024500b0016b9c496b1cmr27737455plh.153.1658157772769; Mon, 18
Jul 2022 08:22:52 -0700 (PDT)
MIME-Version: 1.0
References: <CACNhcBEFQnPdHLFpMp9ktVV1cKvT6rOFv9LH4iRxz+V4SSzZ4Q AT mail DOT gmail DOT com>
<995714381 DOT 20220628111956 AT yandex DOT ru>
In-Reply-To: <995714381.20220628111956@yandex.ru>
From: Timothee Besset <ttimo AT ttimo DOT net>
Date: Mon, 18 Jul 2022 17:22:40 +0200
Message-ID: <CACNhcBGfVGmd++3cdm8br5TSJ1Outt_--yW8aK5opGV8=qnUgQ@mail.gmail.com>
Subject: Re: cygpath 3.3.4 : incorrect windows to unix path conversions
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
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-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>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 26IFNCki001852

Hello,

Thank you for the information, this helped me formulate a solution.

Best,
- TTimo

On Tue, Jun 28, 2022 at 10:20 AM Andrey Repin <anrdaemon AT yandex DOT ru> wrote:

> Greetings, Timothee Besset!
>
> > Hello,
>
> > We are seeing some odd behavior from cygpath.exe when it is copied and
> used
> > outside the normal cygwin installation directory:
>
> > PS C:\Users\ttimo> C:\cygwin64\bin\cygpath.exe -a -u "C:"
> > /cygdrive/c
>
> To begin with, "C:" means "current working directory on drive 'C:'". Not
> "root
> directory of 'C:'".
> The behavior of cygpath is incorrect in this case.
>
> > After copying cygpath.exe and cygwin1.dll to a blank C:\tmp:
>
> Both must be in '…/bin' directory, this is user error.
>
> > PS C:\Users\ttimo> C:\tmp\cygpath.exe -a -u "C:"
> > /
>
> > (should be /cygdrive/c!)
>
> No? See above.
>
> > After copying those same files to C:\tmp\tmp:
>
> > PS C:\Users\ttimo> C:\tmp\tmp\cygpath.exe -a -u "C:"
> > /cygdrive/c
>
> > It works again!
>
> By coincidence. (And no.)
>
> > We bundle a few cygwin pieces (ssh, rsync) in our application and run
> them
> > on machines that may not have cygwin installed, this is why we are trying
> > to use cygpath outside a normal installation directory - see
> > https://gitlab.steamos.cloud/devkit/steamos-devkit for details.
>
> See above, cygwin tools' layout must follow FHS, or you will see all sorts
> of
> issues.
> That aside, you could always use /proc/cygdrive/ root for manual path
> conversion.
>
> > We've been using this setup for more than a year and only noticing this
> > now; I suspect this used to work fine but I couldn't tell you of an older
> > version that worked for sure.
>
> Um, no.
>
>
> --
> With best regards,
> Andrey Repin
> Tuesday, June 28, 2022 11:14:52
>
> Sorry for my terrible english...

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