www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/02/21/05:29:50

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51LATotA768509
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 51LATotA768509
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=ylwd9qAf
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D2BD3858D20
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1740133788;
bh=K8/eB7XfOdqvAQRULXIGdn5/VrkGzFa+wH4I6ldJOMU=;
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=ylwd9qAfImd4RDhnIGi8O0p7ZT+tcFF4SdzImaZaKiX1g3OvWU186qqJcw6HKF0WU
oD47dFObs0orxRUPrqNW0h9qO52I/4hPfM41Fecg7RiVlrqpAV4lXw4/LiVWFmJ7gx
xw36A4W6SArTTEC0LWSlq9hrfG7b6DHDbflEHF1o=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3F4D3858D20
Date: Fri, 21 Feb 2025 11:28:40 +0100
To: cygwin AT cygwin DOT com
Subject: Re: UNC path for WebDAV with cd '\\webdavsrv AT SSL\path' or cd
'\\webdavsrv AT 23456\path' will not work
Message-ID: <Z7hVWK1_pzYrIzBG@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CALXu0UdHbasuyBiVZveyvJ1+K168QKBu0wn_cEVG8z+zfqQQeg AT mail DOT gmail DOT com>
<CAPJSo4XR+vG=RLrOwdo=TsVhLj+qRhDdu0CFrnDZn4Z0oSoqhQ AT mail DOT gmail DOT com>
<Z7dgP35hc_jd_dK7 AT calimero DOT vinschen DOT de>
<CAPJSo4WrUzuGyTzz=Pp8oPnnbcawLNGZBb5dCE67AazVh8B2bA AT mail DOT gmail DOT com>
<Z7eSVamMjrs5XsBm AT calimero DOT vinschen DOT de>
<CANH4o6NW7NnygLoRgWmMMV7qY4UwK6vKnVKCRX2u=9MCWhdMdg AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CANH4o6NW7NnygLoRgWmMMV7qY4UwK6vKnVKCRX2u=9MCWhdMdg@mail.gmail.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51LATotA768509

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.

I have a local patch removing this at-sign, but I would first like
to hear if this is really usable and used.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019