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 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: References: <20211208172008 DOT 01b11239c374604abf638a19 AT nifty DOT ne DOT jp> 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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" 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 -- 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