DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51KIQA1l374210 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 51KIQA1l374210 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=g1UKA92I X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0AEF53858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1740075969; bh=og7SOQU1I2CX3+vuWY5RDTMD43R/jXEBYJhMuyv15CQ=; 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=g1UKA92IPDHQzecew8z9cGXPlS6AznAAcynVNmFL01zNlJTfq2hz0/misctt8AWrw 465aitGcqUauXXnzTdyij3c2pnUkdv7bxxWZpZBh+0TLOIlk1SsIsdkD9lSkye7Teq t1pD4ds+LUdAxVNx7gymUnRhEonAAWhY1sFkYP1w= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 944513858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 944513858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740075933; cv=none; b=Hcv3v8o1mroPt8U2OtXJFD/sTU5+xasjtRU19mLHO5ey9NPOC6Hox6DVKA7/Vw5B+0d7NeNMATWjv9tpVqN2tQcCCuBBgMWibEWn+WVWyH6VSj2uYxK/Jdu9oHyrORA6smtUmouqwZaX3gU+zKvldvRHMwwvCZpJjOLCEOMIFAQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740075933; c=relaxed/simple; bh=wE0Gx12QHvd8KTxh2UJGyEhI4Qa3ypIAfl3U3h8c4Rk=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=Q543IUa+bxHN0g1znnAgQKO22onxxVDR4vK/lyLlfbILQiQSttn63lTXNck/TFqz1PyoFCq8YNSXa0a7So6yZNqzLs0RCsbkUqOa8XfwmlchrIp44S9s6UuqD5dC+XAK3HOJoibz0OoyRbmp/WIyKF6JfAfIpLAzlcYXhfCL19A= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 944513858D20 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740075932; x=1740680732; 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=kJ1mR9n2j4vwk87AWW0hkEVjsPbASjXYVeeCC0/UDtI=; b=RCUZ0kKcSTxR8kLSWCd/bwOJGmdrRMdKP1rs12Mmzqj5RVhk97OZsHgaQ2ORNdfhNZ UtvYbo3mu/f2KWbwdxix1wice+SHM7HVwTR72iZ5PloSN9wmTnK1oTBLqkSVfPMfAAL8 iDc/80F1AMKs1PRWoerv4Y67ONi9P9dbITKQOYMSDWe3BjzjAEF9CdXkLcDdSwhv5uG1 U7IIpLu4GAYlPWWrABc4RLY1q82cFChTdVYd1OvbsDE3xUynbAxP4VcWvtwAKy8fQWFu SlompqPfhjGf8qkPBNSf7OQ1Uu9blq+0Rh/JkL3bl9jRKFB/QPCv5YwTTHSHF7A+NB31 3QJw== X-Gm-Message-State: AOJu0YyU7VADF6aWk3rLLZIlvWY/HVmbTOYg+sBnU1fhaEbJFjolP/T0 ruVMMUU8hlt8IrDaWAT5wU/GSlM+Ph5nUlu8P/nE/WntaQl1EANxIx0pASJdtfXJslUjU2bQ9Kb C6btI6Hs1/wzmUYl998wzGRIduKWSavdn X-Gm-Gg: ASbGnctDlQNdPpo93PEVhuIcwmswF6e6QQkF34D7rFZlEe1DosTmEPYai22es2G4cgD 8BxKZHCssCj6Doaochz9WIucvJL2JL88zbH0vkWxVkW0v6SVQ1tMH5/qmG6j6bNbyYu7g9btn X-Google-Smtp-Source: AGHT+IHT6YszZYKGRL6YozHC0fq3/NbR9hv/HYpQ0dpp/Vk/TsV7MaTaPFq7sxxYnhc2YeuImc6D0xrqtQz3nvYjWQ0= X-Received: by 2002:a05:6402:270a:b0:5d4:1ac2:277f with SMTP id 4fb4d7f45d1cf-5e0895163f8mr7962032a12.9.1740075931673; Thu, 20 Feb 2025 10:25:31 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Thu, 20 Feb 2025 19:24:55 +0100 X-Gm-Features: AWEUYZl3jX6kdlo_UT_8zwuLo2VFRV-npdyRMM-4ACNYyHv9I1eQvGVFqOyMbUc Message-ID: Subject: Re: [regression-3.6] coreutils mkdir broken on UNC paths 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: Lionel Cons via Cygwin Reply-To: Lionel Cons Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51KIQA1l374210 On Thu, 20 Feb 2025 at 18:09, Corinna Vinschen via Cygwin wrote: > > On Feb 20 17:37, Lionel Cons via Cygwin wrote: > > On Thu, 20 Feb 2025 at 14:56, Cedric Blancher via Cygwin > > 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. Maybe the hostname resolution in fhandler_netdrive::exists() failed? Lionel -- 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