delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/12/09/04:18:02

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0207E3858434
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1639041481;
bh=PkfM0azcYElQzyfNUNxO7e1cC7NXGlQey6bQNRVEJHY=;
h=Date:From:To:Subject:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
Reply-To:From;
b=r1JuPh/9EgbiMCEb28u5305MlLN5GZ8DUd8Fqhk45sOWMKvF/X0u3uyhNp7dw5Bhf
qz4YBHQB4oj6HLgmYcd5tSgFrDOGN6rrp9Svl8d874c8Z8/PDbnPM9/2HzTledwNiW
UoUgArn13N9kJxt21FwLy0KH32PHAqcrDbRWTnmw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B94723858C27
Authentication-Results: sourceware.org;
dmarc=fail (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com
Date: Thu, 9 Dec 2021 10:16:48 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: vboxsharedfs - Too many levels of symbolic links
Message-ID: <YbHJgHF/JdY2baoH@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
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>
<20211209171656 DOT d144e77995c9f07fb4c38f9d AT nifty DOT ne DOT jp>
MIME-Version: 1.0
In-Reply-To: <20211209171656.d144e77995c9f07fb4c38f9d@nifty.ne.jp>
X-Provags-ID: V03:K1:DOqB5thRqS+V6tqbomxqLZl258UqG+uT/zA4/ufec6atWPk+U4M
Rof1VhopGd0VtTAIPWoeWE11Fyg5SsHK6nXURwpFoQeqx7ygOtaPzOt3668c4oaoy9/rgba
idUCSigv6qn921okGRfNG4F95ugtO751Nm3cXGsGhNwvwtRqokQhbsXtaRwuHjL/OiDw5aq
AilxcCWMVETM/tW5m647w==
X-UI-Out-Filterresults: notjunk:1;V03:K0:RRXq9HfE++Q=:+8sevbx0GCfy/oVekwHY41
+kzP9VVGBCOyzRtYy/DVlVoJRpBPQNTyaSHBwIiVK8D5vDJbwpmy15YdodaRJX+dL9hrFJ8p8
/Ge89G8Er7NIZUnJvUG1j507d1gpOGIJqKmGqB2yE9wJGj0UhdIuEncby8kiKWUwMBp9+nIb6
K9HJQ0pqG42pkClE0YuWk9n5c9dy9O3s4OMe5j0KJPzN4GTTSr4E/6TNRH955SFV+JtIyaCrH
qERVWr7ECw6vjyBxszHzTlm1ATdNanPMa/cJAdbM/JexTbe+kiutwJ1HFsR2TRf41kY9Mv3s5
zCnf+9Lo8z5AHE7JXUTRce3ITXDqeqcDU53TSuq012g4NVzI6HHblzhvzaIcpMAE0FlLQcwiK
suxR9PFT83+XU3bqUz1yRTtJIDy78THeEr08e6sQktI0iWi2V6TJ3D3/87d/kXQFai6G430y3
V47zdU8QTZav+8kC29Va/xlBea5NOTqP67PF+ynrvgdT6AJSOPwq8560iLcqSutpl/9waQQEM
dh/Q4nobqTXmb9jte+9ZvEPeBfkK46b303WHecXHdRfiHRPPJPjooalJFkxjXAm6fpPJw/nsG
dnGLhp/ALigtOUvXEQ+zEi169ew5DiXYMZ0Fd1bgla9wft1kkP19Q40ugs12+JDc6BWhlgmcL
s8Kh0JLJPor/ZEGQxxid37aBSai5FW2t2Hidws9HCHIeM2hw3GHPx9XQi0mp2rlAWk7D8elt7
xq+w1e1lhk3/k1/F
X-Spam-Status: No, score=-99.4 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NEUTRAL,
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>
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>

On Dec  9 17:16, Takashi Yano wrote:
> 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.

Oh drat, I tried that explicitely and I saw that WNetGetConnectionW
returns the same as `net use' on the command line.  So
GetVolumePathNameW only returns the actual share name?  Sigh.

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

No worries and thanks,
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