DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51QJKubP298632
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51QJKubP298632
Authentication-Results: delorie.com;
	dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=sleocssy
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B98F3858401
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1740597654;
	bh=RfmT9PuBYwdnsSmAqUSAXv86TfVKCgGIsK7bDMawbEw=;
	h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=sleocssy2hEdZGwcWoumir2amS32dXMOQX3lZkuW/Nd3jTQ/uklfljcCxlceB2M7S
	 +xkTS0LRAGeh3+ItByXjAoxJe5BTpSTtYch4Bh6DkFUPbTW13D+8UrlbmErqOKC9c8
	 v3Uy8xxaLTUnb2TdkRGsx9jdAv4l4UZYj2UL/nlI=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF3A33858D28
Date: Wed, 26 Feb 2025 20:20:28 +0100
To: cygwin@cygwin.com
Subject: Re: Document support for @ character in UNC paths
Message-ID: <Z79pfLkR2RO88SZW@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <Z7eSVamMjrs5XsBm@calimero.vinschen.de>
 <CANH4o6NW7NnygLoRgWmMMV7qY4UwK6vKnVKCRX2u=9MCWhdMdg@mail.gmail.com>
 <Z7hVWK1_pzYrIzBG@calimero.vinschen.de>
 <CALWcw=E4kcJ+UbsRkqkFpgRx734H33NhJhspuVH2KgDzV4jL3g@mail.gmail.com>
 <Z7my7gejHoLjf2F1@calimero.vinschen.de>
 <CALWcw=EqzTv-J5pm1DVT8Un+J2QWLtV70nF1nU9DO_P3Cg4OOg@mail.gmail.com>
 <CALWcw=GDQ0kPGXBXMa3-9LdFX3fjsVdUK-VS1TpwdO_XtFvXMA@mail.gmail.com>
 <CALXu0UcjiJt4=MnuCWb_97FY9NVMM6Ak-5a87H2uR7qO+50Gzg@mail.gmail.com>
 <d3cc4542-4664-a756-ccd3-f05515cc1d7b@jdrake.com>
 <Z78pGVoryN-BPKh-@calimero.vinschen.de>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <Z78pGVoryN-BPKh-@calimero.vinschen.de>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

On Feb 26 15:45, Corinna Vinschen via Cygwin wrote:
> On Feb 25 16:59, Jeremy Drake via Cygwin wrote:
> D'uh.  My reading skills are detoriating.  I tried RESOURCE_CONNECTED
> and RESOURCE_REMEMBERED, but always with lpNetResource set up for a
> certain server... *facepalm*
> 
> I reworked the netdrive code now, so it works a little bit more
> generically.  The problem is still that some servers never show
> up if you try to enumerate servers with WSD or WNet functions.
> SMB servers are not enumerated with WNet at all, and WSD shows some
> servers but not all servers in the neighbourhood.  So when trying
> to enumerate shares, we still need some kind of heuristic.
> See the latest commit 323729f654ae.
> 
> I added more comments and two FIXMEs in terms of WNNC_NET_DAV.
> Changing the loop (or better, adding another loop) which handles
> remembered or connected resources sounds like a good idea, but
> still needs implementing.  I'm open to patches here.

I implemented finding servers by enumerating the container WNet
resources from the top level and added enumerating connected disk
resources.  The latter is only enabled for WebDAV right now since
connected resources are a subset of all shared resources and only WebDAV
is known (yet!) to suffer from the problem.

Give the next test release cygwin-3.6.0-0.406.g15b52ba69d64 a try,
please.

> The way if and how to handle WNNC_NET_RDR2SAMPLE isn't still quite
> clear, too.  If multiple drivers actually use the same network type,
> doesn't that mean you can only ever install one of them?  Or is there no
> kind of collision and they co-exist?

This is still something I'd like to learn...


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
