delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/12/09/03:17:28

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 C49583858C27
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 1B98Gh4b013290
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
s=dec2015msa; t=1639037803;
bh=VFyxErzLWPiqUP9KLJ6fiNfRrgprYJ2ZYJQzSjZeMnw=;
h=Date:From:To:Subject:In-Reply-To:References:From;
b=dYsxICK64GJH/1pAyufnj1LPEqXFXk/DB0MzjwEAMeinqXjFM2oqdYL4kD4Rq868F
SxWORt884gcKAc0OFVcUBfY/hEnNQI4LlACMbuYZjgWfpTKKaCiUNCeX78EQmaAy36
6b8f2/ok5W0c4qPnH010jtE2CmnUvF4IVm3YqJWB7t/bIn+iZTox3XkinIB/hH5sJO
zNIEE1HsbZwu4OqbCSCXqn74uDTGoAu8yQuoqrg0JybgiLfupRIddcKK8pUKawjzef
CfRXljh5yISpDVQz7/pv3PEivja+2x2fTx9PbM6wlr4F0jmPWqn+ocDQ8NDUBWrz/F
IcRqzKbxEMpPg==
X-Nifty-SrcIP: [110.4.221.123]
Date: Thu, 9 Dec 2021 17:16:56 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: vboxsharedfs - Too many levels of symbolic links
Message-Id: <20211209171656.d144e77995c9f07fb4c38f9d@nifty.ne.jp>
In-Reply-To: <YbCK8/w9KfjB+b/N@calimero.vinschen.de>
References: <Ya+WvmECA+zAbuV9 AT calimero DOT vinschen DOT de>
<20211208172008 DOT 01b11239c374604abf638a19 AT nifty DOT ne DOT jp>
<YbCK8/w9KfjB+b/N AT calimero DOT vinschen DOT de>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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>
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 Wed, 8 Dec 2021 11:37:39 +0100
Corinna Vinschen wrote:
> On Dec  8 17:20, Takashi Yano wrote:
> > On Tue, 7 Dec 2021 18:15:42 +0100
> > I confirmed that your patch works nicely.
> > 
> > ...except when the drive is created by subst using UNC path,
> > e.g. subst w: \\server\share.
> > 
> > In this case, WNetGetConnectionW() fails with ERROR_NO_NET_OR_BAD_PATH.
> > 
> > So, I modified your patch a bit.
> > 
> > What about attached patch?
> 
> Oh, great!  GetVolumePathNameW is the function I somehow missed when
> looking into the Microsoft docs yesterday, so thanks for modifying the
> patch this way.
> 
> Please push.

I noticed that this code does not work if UNC path "\\server\share\dir"
(rather than "\\server\share") is mounted to virtual drive.

I will submit a patch for this issue. Sorry for testing insufficiently.


-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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