From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-04.nifty.com (conssluserg-04.nifty.com [210.131.2.83]) by sourceware.org (Postfix) with ESMTPS id C49583858C27 for ; Thu, 9 Dec 2021 08:17:02 +0000 (GMT) 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 Received: from Express5800-S70 (z221123.dynamic.ppp.asahi-net.or.jp [110.4.221.123]) (authenticated) by conssluserg-04.nifty.com with ESMTP id 1B98Gh4b013290 for ; Thu, 9 Dec 2021 17:16:43 +0900 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@cygwin.com Subject: Re: vboxsharedfs - Too many levels of symbolic links Message-Id: <20211209171656.d144e77995c9f07fb4c38f9d@nifty.ne.jp> In-Reply-To: References: <20211208172008.01b11239c374604abf638a19@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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@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 08:17:08 -0000 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