delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/02/01/07:50:40

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 <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <1157721958.20220201154725@yandex.ru>
To: BRISLANE Mark <mark DOT brislane AT partners DOT axa>, cygwin AT cygwin DOT com
Subject: Re: Cygwin 3.3.4 - cmd to symlinked path doesn't work
In-Reply-To: <VI1PR04MB41575EBC7E202ACC1249553186269@VI1PR04MB4157.eurprd04.prod.outlook.com>
References: <VI1PR04MB41575EBC7E202ACC1249553186269 AT VI1PR04MB4157 DOT eurprd04 DOT prod DOT outlook DOT com>
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
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>
Reply-To: 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>

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

- Raw text -


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