delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/12/12/10:21:50

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1EF4B3854574
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1670858473;
bh=O7tCQSER7lzX6QNswXw2/1hK3TBJQJVJF0/OghazJqE=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=NLEgCbWoW6n7+HPUdQw39R59vcf7Te2tf40PyuR+rdRnNayPaPawu5KuQMdRFIGsJ
7n7lo6CEoL1UMx3gc/knucWkDwPzo1dQxXWS7YU0/5gaZyQy7Mukr3nlVJljK41V7+
+mZtnDL5wDVudDif3MyCNcZFhAAobXs5jxXqCIDo=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
Date: Mon, 12 Dec 2022 16:20:36 +0100
To: cygwin AT cygwin DOT com
Subject: Re: [EXTERNAL] Re: Strange behavior when executing programs
Message-ID: <Y5dGxD3f7ZQ3XNgK@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1031eafe-fc3b-ab5b-6e63-b0f56c038332 AT razorcat DOT com>
<Y5camvZ8vSCNwXUu AT calimero DOT vinschen DOT de>
<DM8PR09MB709545D94DCD99F42D17D099A5E29 AT DM8PR09MB7095 DOT namprd09 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
In-Reply-To: <DM8PR09MB709545D94DCD99F42D17D099A5E29@DM8PR09MB7095.namprd09.prod.outlook.com>
X-Provags-ID: V03:K1:JpM6ZWs5EjKABsit7NOzO22xKz30WBYKaaILN7YLZ7wzifPaNe4
w67ujJ45oCpvtrrq4rBW5cB9SIr0CQLlnHGnaqKJB552sygiwKqEPUDmHgtGehtkm0H/ydU
0F+p2EGNNPlSfluUFhbk5zQMIqlLUOzNL0VZhUVY0Fy6Hq7JeBB/Dpiz3734aF39/hNEOGk
7AruhRSThUSsQ3UBc/7oQ==
UI-OutboundReport: notjunk:1;M01:P0:CANKVMClUbc=;Qd6RxexEiPVDfeMuoHNAU/YMdnU
DlQkW0JqBiTMkUNGIuNKQdkAEjyYXBIhNB6km9Fp95C/1fDaEMvgN6OdHRM93oSQGWQvkRzUt
i4GC9bbObhpGkm2i6lglhSUz1P1Vajeb1NoMaHQl1b+qGhxivSMBxQ2UxCIP6yMCXA9Au0V3E
XNATopuLngjpG/a3cqaDG6nw971ymBNYJLG3Jeqv5033gTIfUW/LQvtiTcNpvRr0DxDrvBKED
8P+YGU1LBxTgqzVVaXcaTF+1uEwVmHk7KwARdAtPYwdVrrVueY81b9NxuNv8YZGQSyOFmwHjK
3wyCUSlUshnOxb/bNwadBIlea3FJD8hg68u1e/8llClCvSN0iZCs9RerkLJpgdII80dtOqn62
ED4fquOp5jRgPq3RvlKjVxPhTc+zMMqWB4/wFGM1Rj5B+87g+WK9sW7eZLmaeAoTxcOaNipyz
jzcYY2CcviEicPeaXStaxTFtcXDmn5ENm4nbaOmb5fad6BmY8M1ZR6SBNSZRIlazmMEF3iWjN
mnm+rDRbvJu/xXHJsUvOLKtDHo/fA3OBlvxvH0AGz1PR3Q/7hYYwx0C+MPwW14fe197HVbN5l
LQbelDTijjaaTEVblaYBZqaICPaTl3lWNFqruQLNSOTVXrjyTsc9NMS85wLHt4mGLAUl3lgLb
rwd4ejpcfjrbSgejcyhbEegJlQ1Nu1V1ftniryG3mA==
X-Spam-Status: No, score=-95.5 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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-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>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin 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 Dec 12 14:52, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote:
> > Let's consider this problem again, but I don't see a quick and easy
> > solution.
> 
> $ realpath /cygdrive/s/ado/msadox.dll
> /cygdrive/s/ado/msadox.dll            <====== IMO the problem is actually here
> 
> $ realpath msadox.dll
> /cygdrive/c/Program Files/Common Files/System/ado/msadox.dll
> 
> Both paths should start with /cygdrive/c, and then those would be identical
> (and, hence, I suppose for the purposes of the OP).
> 
> A substed drive is nothing BUT a symlink, should be treated no differently than
> /cygdrive/s -> /cygdrive/c/Program Files/Common Files/System

I agree, and that was how I tried implementing it back when.

The problem is that resolved paths may become longer than MAX_PATH.  So
people want to keep the paths with intact substituted drive prefix to
run native commands from Cygwin.


Corinna

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