www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/02/20/17:38:33

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51KMcWTp470889
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 51KMcWTp470889
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=aWj3OppK
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7AB63858D20
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1740091110;
bh=DtACn/vA4XhvAio/RFi2AG6lD/LiC7UqcjnuGJYTz4E=;
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=aWj3OppKq7HPjq9MLDOLmJuV5yBwCWVLp5yuNlysxNEDvnH4h8xLd8mjLnXjRbt2a
im6t16FzIbuTsftE5xatmJT3T0JONEpIRtY7EVNhT+9/YJ5xnQOE3jN5bg16hqAS96
oN6Vq5WA3ORi0tSfB/sfr8b7PsnJ1gb/5/sa7Kq4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E10CE3858D20
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E10CE3858D20
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740091000; cv=none;
b=k3O2Kf0Ni4PUrIQUCpbDBesOVJZJTJ3/fIXTPXJFHmmPOhiesIAG0jTLmi5yDn8TBjCO8mPyutPnE870yrW6Eb9pcfeK/mwg1YggjSnYEEpUsa2HDJ4hClXa+xVKKXxfAl13RWOme5/jbmsKZvRXdOlGyxXWEj7yCtSE2XvsI04=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1740091000; c=relaxed/simple;
bh=WHHmXzvUTaUz7iJUQAPyrVAqSSV/cx90OFrMO2TLzAc=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=Aos9aNltM5GZ1TXSxdLtDaVUYkLkj/NTa7NVFen/2s9f3ZZ7xwoTrZmC7lEGohItDlavas7kBHBJM1HNr4MSnQwWT8g/dRGvmW5MEwyJXFxZSLUUQlvQjO0WbaBz2HgNjmDbcC3K+OzIcXDTlGs3qgg9uJ/pACbVEgeriyd+IJY=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E10CE3858D20
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1740090998; x=1740695798;
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=e9FerXpnj4FXuJFFoCV09L1vcYgbnwRH5+oYNCv+qiY=;
b=ZsdX7xiIg1haciUJxVg0gG4Ygp1NAn03U4XL4kCJ4BqG30LsAuivCNvYBvrWpqG6ax
o0EIS4LDDPXxglehFIo50fCbtcFPby3QBlyCjMf56DG3P+cIr04U8NmX9TKprl8txA9N
g5ReVnwrA26HzzrzlFDhFZRAIHWnJ7cuh1uBv3mbYF6V4PswVIzak7pFwA8nhzquxBFQ
rMojfv8yI5AYT2EYKP2OSpPHVz/wEAp1DxGz9XfD/3fS2SBohxGuGI495lA8Tv3Y6mLX
riEy6BX/TIVquXjdxugnNWfBXO8rmRv8CfcuU2HOpPFe9YS/jqzePuNn/fyNQ6aRCRGf
Vf/g==
X-Gm-Message-State: AOJu0YzAQbOtBiLwdatHGz3fNC2EveRGmeiCcfuoUiD8mRaQ7ww5h6I9
MNfQSj0BQ0zrJzRkcYj5PrUNN2JZ3RmEcTRLQZaIZvnnbZBi0ikGrP1bubuziJdar0HH4/wyTxE
ZK7n5VzyYETb58oTRh+ZtCh68Uq7w72jR
X-Gm-Gg: ASbGnctqw2ahalEzN0CJd6jKbb9fn/mmGeE+TEJ/c3Pb5a0cwqSQ5iy5GooTq+Ji7YX
f1MtfRkAAsZ8p40Xd5Lacl0IZuLJga2AQsyhfzRctYXcJUmiCMktcKKjuACu6HOyl+oOc2iUKww
==
X-Google-Smtp-Source: AGHT+IFpk88gr81x/pMOQzdrvfvfaeSZsLBlsylEVzYxwDpE5fY9Eev7fTh4UjhebBfiGGvTpZ5NXh0ijIKlwrYUu9I=
X-Received: by 2002:a17:907:720a:b0:aba:6385:576e with SMTP id
a640c23a62f3a-abc0ae1aed3mr79127866b.3.1740090997576; Thu, 20 Feb 2025
14:36:37 -0800 (PST)
MIME-Version: 1.0
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>
In-Reply-To: <Z7eSVamMjrs5XsBm@calimero.vinschen.de>
Date: Thu, 20 Feb 2025 23:36:01 +0100
X-Gm-Features: AWEUYZmHHyMDxC9JUcaD7ZoBM11adYWGyQXB_zyt9HVsrJu2iwSUlfJ7LifJIy4
Message-ID: <CANH4o6NW7NnygLoRgWmMMV7qY4UwK6vKnVKCRX2u=9MCWhdMdg@mail.gmail.com>
Subject: 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 <cygwin.cygwin.com>
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: Martin Wege via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Martin Wege <martin DOT l DOT wege AT gmail 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 51KMcWTp470889

On Thu, Feb 20, 2025 at 9:37 PM Corinna Vinschen via Cygwin
<cygwin AT cygwin DOT com> wrote:
>
> On Feb 20 19:24, Lionel Cons via Cygwin wrote:
> > On Thu, 20 Feb 2025 at 18:09, Corinna Vinschen via Cygwin
> > <cygwin AT cygwin DOT com> wrote:
> > >
> > > On Feb 20 17:37, Lionel Cons via Cygwin wrote:
> > > > On Thu, 20 Feb 2025 at 14:56, Cedric Blancher via Cygwin
> > > > <cygwin AT cygwin DOT com> wrote:
> > > > >
> > > > > Good afternoon!
> > > > >
> > > > > Cygwin 3.6.0-0.378.g78fb13d21f4f.x86_64, Cygwin coreutils package 9.6-1
> > > > >
> > > > > coreutils mkdir is broken on UNC paths:
> > > > >
> > > > > mkdir -p -- "//ember.data4.local/afs/disk11/builds/bash/install_root/usr/local/bin"
> > > > > mkdir: cannot create directory ‘//ember.data4.local’: Read-only file system
> > > > >
> > > > > This happens because you cannot do a "cd .." in
> > > > > //ember.data4.local/afs, because "afs" is the UNC prefix for that
> > > > > filesystem.
> > > >
> > > > No, it happens because mkdir "//ember.data4.local" returns "Read-only
> > > > file system". If Cygwin would just return EEXIST if this mount exists,
> > > > then this whole mkdir -p would work.
> > >
> > > You know exactly what Cygwin is doing wrong, great!
> >
> > Sorry, it has been a very long day, and I did not communicate my point
> > precisely.
> > My point is that mkdir("//ember.data4.local") for a share should in my
> > opinion not return EROFS, because the share already exists.
> >
> > Looking at the code:
> > int
> > fhandler_base::mkdir (mode_t)
> > {
> >  if (exists ())
> >    set_errno (EEXIST);
> >  else
> >    set_errno (EROFS);
> >  return -1;
> > }
> >
> > My guess is that exists() fails. The why? and how? I do not know.
>
> 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.

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

The spec for that is in
https://learn.microsoft.com/en-us/windows/win32/api/davclnt/nf-davclnt-davgethttpfromuncpath

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

- Raw text -


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