From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.13]) by sourceware.org (Postfix) with ESMTPS id B94723858C27 for ; Thu, 9 Dec 2021 09:16:51 +0000 (GMT) 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 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MybCV-1mc56a2moH-00z0bD for ; Thu, 09 Dec 2021 10:16:49 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id DAF89A80D4A; Thu, 9 Dec 2021 10:16:48 +0100 (CET) Date: Thu, 9 Dec 2021 10:16:48 +0100 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: vboxsharedfs - Too many levels of symbolic links Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20211208172008.01b11239c374604abf638a19@nifty.ne.jp> <20211209171656.d144e77995c9f07fb4c38f9d@nifty.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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@cygwin.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: , X-List-Received-Date: Thu, 09 Dec 2021 09:16:53 -0000 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