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 995DD385782C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yandex.ru DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1643719801; bh=LeuJ2q+IGIurhlF+chlnVz2JNl3H6X1ZveLo/ZJCAnk=; h=In-Reply-To:Subject:From:Message-ID:References:Date:Reply-To:To; b=eB8UTLjABa79YtNqq85Qy+9/wNwqC0fNPYPDm2n/8qpnhNAYh5kv+kQzFuQYbCvu1 LdSVsVWTHQljoBkSi+FlmLYjV+NRyKv33TXX+7EnnGbzaWV0xUlzCj/AVxfA7tFhbB YN4vDP1TUiY7yuKSn8ZvA6EuSA14QrZqzzD1RtJ8= Authentication-Results: vla5-396535d496ca.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Fwd: 2 Date: Tue, 1 Feb 2022 15:47:25 +0300 From: Andrey Repin X-Mailer: The Bat! (v6.8.8) Home X-Priority: 3 (Normal) Message-ID: <1157721958.20220201154725@yandex.ru> To: BRISLANE Mark , cygwin AT cygwin DOT com Subject: Re: Cygwin 3.3.4 - cmd to symlinked path doesn't work In-Reply-To: References: MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT, NICE_REPLY_A, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT 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: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Greetings, BRISLANE Mark! > We had this issue in 3.3.3 and is down as being fixed in 3.3.4-2 but > perhaps our scenario is slightly different because it's still happening. > SERVER1 has a folder on D: called folder 1, which is a symlink to > "\\server2\share\folder1" - created with mklink /D folder1 \\server2\share\folder1 > DOMAIN+Administrator AT SERVER1 /cygdrive/d > $ ls -l > total 3 > drwxr-x---+ 1 Administrators SERVER1+None 0 Jan 28 11:03 '$RECYCLE.BIN' > d---rwx---+ 1 Administrators SYSTEM 0 Jan 25 23:07 'System Volume Information' > lrwxrwxrwx 1 Administrators DOMAIN+Domain Users 32 Nov 9 10:52 folder1 -> //server2/share/folder1 > DOMAIN+Administrator AT SERVER1 /cygdrive/d > $ cd folder1 > DOMAIN+Administrator AT SERVER1 /cygdrive/d/folder1 > $ cmd > '\\server2\share\folder1' > CMD.EXE was started with the above path as the current directory. > UNC paths are not supported. Defaulting to Windows directory. > Microsoft Windows [Version 10.0.14393] > (c) 2016 Microsoft Corporation. All rights reserved. > C:\Windows> > This used to work in older versions of Cygwin. The interesting part is that the behavior is dependent on sequence of events. `mintty bash -i` in a directory: > $ pwd > /cygdrive/d/cygwin > $ cmd > Microsoft Windows [Version 6.1.7601] > Copyright (c) 2009 Microsoft Corporation. All rights reserved. > > D:\cygwin> exit > > $ cd $( pwd ) > $ pwd > /cygdrive/d/cygwin > $ cmd > Microsoft Windows [Version 6.1.7601] > Copyright (c) 2009 Microsoft Corporation. All rights reserved. > > \\DAEMON1.DARKDRAGON.LAN\arc\cygwin> -- With best regards, Andrey Repin Tuesday, February 1, 2022 15:28:28 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