From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id 55E913858D28 for ; Mon, 18 Jul 2022 15:22:54 +0000 (GMT) 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 Received: by mail-pj1-x1036.google.com with SMTP id o31-20020a17090a0a2200b001ef7bd037bbso13019583pjo.0 for ; Mon, 18 Jul 2022 08:22:54 -0700 (PDT) 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: <995714381.20220628111956@yandex.ru> In-Reply-To: <995714381.20220628111956@yandex.ru> From: Timothee Besset Date: Mon, 18 Jul 2022 17:22:40 +0200 Message-ID: Subject: Re: cygpath 3.3.4 : incorrect windows to unix path conversions To: cygwin@cygwin.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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Mon, 18 Jul 2022 15:22:56 -0000 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 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 '=E2=80=A6/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 tryi= ng > > 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 sort= s > 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 old= er > > version that worked for sure. > > Um, no. > > > -- > With best regards, > Andrey Repin > Tuesday, June 28, 2022 11:14:52 > > Sorry for my terrible english...