DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51LBqZmc801214 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 51LBqZmc801214 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=OkOjxEoM X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2595E3858401 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1740138755; bh=2tpfvo5RCD+ue193bwXgDC8UKQgbkqxPNqeZsd8TGPw=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=OkOjxEoMsHRRXrdFdGf+cyhIbBjYauvKcFcpZ8MCuQgp0AFwNdWkGiPCgVnNpUlyb bbqxR6zeYOmi8U6XKxlvZPRY2XpI6IbIQ1aCamxp/PAUTPrSXcJ33mXPz82a7RCQg8 thlP2vSurf05wfOvAKRhmrLyVY0E3y0XhpZsQSh4= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5156B3858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5156B3858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740138683; cv=none; b=f6ip5KlrQ5+g0ZmiJaZEXvKXENQh8Wh9l5eI9jS4/bUUKeuJSe8cwdmDqLFX+gj7oRsEN9gaMnEwWKh6LpIXGkTL8lrrTs/Yr5pg8x4XH08WiKQY+afzvqwrkzjCQ3tk93x/Lyz1ugIM8ehn62wnUhj3mzKh9simRJVOtQQmCig= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740138683; c=relaxed/simple; bh=P18Wow/p1SU4Xrqf3kWU4AN9cQBVP9/U0eeZcNfckfU=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=i9IIqQC7XtugLYuIHZBPLVTaZm0ESGe5mXX5OroWJb2FiotaK4O9mjpWTcaO+g57aHYgU9SfoK70qTOrV7gIMRauJeuFZIV3dNDY2i0IZu072t/9i+XeIqbHSf5+KkmEq+dfgyRgh/U6/KNDDh6vkuPiM2UkuWgn/UtlfDZsngI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5156B3858D20 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740138681; x=1740743481; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=JHTPN5GYNCNNM7EAmWGiX6939J4At/bcVc1JDPXmAj8=; b=H7gUByn+mO0UR0G1FYmSwBAFO7ZVT2HcXRQ3vbZkVw2vMxFqXPahmuqIecZWyH8EKg rnCr87TD2nnVQNEM+7Qe9QhwWOs+B//gi3GnSAQLDJgWdXFCnY+v9eLot8IikTXoUbar A/9OeUmWre420Gxpaivf8cvJGBgO3SzAjygjzh5M4+xokmIgkWnoRBh/638CB+eBhSoe wWy56NCMZuW+EW1dvoGIff78UaQaN7qlZRMb43kd4J6+dje+J7dgeHooIjPZ0ibGDFdA 7Vi6B+AeO8RMvhX+B3RaTQFhEhdTota93CvNhoArcw/MYCEHt6DPnPhabPu4FKTEFZR8 Aluw== X-Gm-Message-State: AOJu0YyhBe2ffrawhutqHSiz4eiOQ1XDAUkArDHIbWjCjr7qy7wWG5bV DFk7GaQvcqAwRRpAx6bBn926iWFtTwLw1L0iB4dGBNIoDsV1N9XPztXIitBoqDEXWWTaTAGUr+4 CIHR8AqFzHF6Xe9smKltbXqDD/hH2In9p X-Gm-Gg: ASbGncsIDzEVii05OWAX0MXkK3A6tHDD8KUsE4vksRGifYm5vonv1cMfFJSybMlcXz/ ScJlMyTDc57BB65zGAOY1kLuv2DkgldN0+r2eckM/jYmXBj32R4X/0PyRqLUZpZyuNIJBnr2c9v neEsGXxQI= X-Google-Smtp-Source: AGHT+IEiKgq2Q6QMSWHkjbkfJRJAV2rgCjsNzR9x/MJmqIwoVICEh/DRFz0PB2KIwsrd9U5hgqnvudf08P3XflkGWNs= X-Received: by 2002:a17:906:5acb:b0:abc:a40:4193 with SMTP id a640c23a62f3a-abc0a4044f6mr280556866b.8.1740138681391; Fri, 21 Feb 2025 03:51:21 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 21 Feb 2025 12:50:45 +0100 X-Gm-Features: AWEUYZke-62vd9GeibFaXLX9viAI29W3yEBqRwXfVrDKYocvuSLHep3FkIo6j1k Message-ID: Subject: Re: UNC path for WebDAV with cd '\\webdavsrv AT SSL\path' or cd '\\webdavsrv AT 23456\path' will not work To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Martin Wege via Cygwin Reply-To: Martin Wege Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51LBqZmc801214 On Fri, Feb 21, 2025 at 11:29 AM Corinna Vinschen via Cygwin wrote: > > On Feb 20 23:36, Martin Wege via Cygwin wrote: > > On Thu, Feb 20, 2025 at 9:37 PM Corinna Vinschen via Cygwin > > > And here's the problem. It works fine for me on all shares, be it SMB, > > > Samba, or NFS: > > > > > > https://cygwin.com/pipermail/cygwin/2025-February/257438.html > > > > > > > Maybe the hostname resolution in fhandler_netdrive::exists() failed? > > > > > > If so, it would be a problem on your side. > > > Does `nslookup ember.data4.local' return a valid address? > > > > > > I just pushed a patch to print a debug statement in strace output > > > to see what error code GetAddrInfoW returned. > > > > The code in https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=df307349a09e6f1ba75c78b1427dcea40f435e6e;hp=8a8fb570d7c5310a03a34b3dd6f9f8bb35ee9f40 > > is not going to work, because you only give ret as argument, but not > > "name+2" as hostname. > > Yeah, it was obviously too late yesterday. The patch was wrong twice. > > I pushed a patch for the patch which should show up in the just > building cygwin-3.6.0-0.381.g8cc55d819bb7 test release. > > > And speaking of the "hostname", is this the \\hostname\path of an UNC? > > In that case this will not work with WebDAV/SSL or WebDAV with custom > > port, which might be \\webdavserver AT SSL\path or > > \\webdavserver AT 23456\path, or \\webdavserver AT SSL@23456\path > > You need to replace the L'@' with L'\0' before calling GetAddrInfoW(), > > or it is not going to work with WebDAV > > I never saw that before. Is that syntax really usable? > > I just spent half an hour trying to connect to a nextcloud instance > using this syntax, but to no avail. https://... works. Full command line, please. What we use is File Explorer, Map Network Drive. fill in WebDAV address, and then you can to a cd \\webdavaddress AT port\ in powershell. Cygwin never worked, and I think I now understand WHY this never worked. > > I have a local patch removing this at-sign, but I would first like > to hear if this is really usable and used. Yes, it is usable in powershell, and we use it. *PLEASE* push the patch to cut off the L'@' Thanks, Martin -- 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