delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/08/26/14:25:13

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:cc:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=Y6g0FWp62S6GA2zH343Fxpo/dlpRY
sgRlBJB+Tj4u3ge8e5ZB+EMoiU+0z0nl/Zkleye455Jj8vkh1G8QzC1I98QNFy4g
/IDsf1mT5eKMuIN7VXfwAI2Naw7kyRkrwHgKlpzvjBJKfAPcDi9Rg1AiOyLWu2m5
4Q0Znw5XJHc/6U=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:cc:subject:date:message-id:references
:in-reply-to:content-type:content-id:content-transfer-encoding
:mime-version; s=default; bh=Ct7k7xbanfnBfxhjgoQHOhdAOpE=; b=q59
nbFvnJLmJqdNKx4peEpMH0d+PqwFtCWZnk/PUCEi1UamuOa8FOiwqdIbn1LNzAkQ
8FMwmVwD+ve3kUtMOdYFZz+pPZH+LFYgT3kbMr/M5IypXwz84wd/4iiOtNYxiA2Q
tqoiTVruYixXfMV2WO58VDMxM2wAcjyH19sBawXU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-8.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=
X-HELO: NAM05-CO1-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WCAiAF0wuiywp1YpEpZ8i8z2rroCaqVA6ckX3xuPK4bML7W1LkLWSbh2x7/dOMmU0XMsPa0VXrsi4dYPXuTFBIb1IQK2nJBNeRZ85vVlzJDMGnmIsneH0YAStIzAVfg2nJGwdvR4Eu0mY+uizXKhf9hdCfvMU3TEWCZxWAT1Ss4VQGDGuAcij1TcqW0sypJ7vPTzBJoPrUhvRnbxbVZYHNl8To0rQH3wnWf0tNeb/h6fmGF7SV/klNy3YV3ivwKq+cQNaUrV57mc3Ab4NrAfZ2fmaTt9SkjJ2VrzqmtqQOCkQZXhqRBDK7nqP39w3rBgWQxPqI9uKUdUe5fs+VJyBQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z8xImAzcHFUp7/tNNBFpzyTj9ui6O/8KFqJpya7vogg=; b=d7R1p6XQRJNtYpsKusCsJZGwt6Mac4oHirixfUoyxGZJXpHyeARCbe50w70d0vnQgieHwQMPGAgm59OgLi1rVes4mug34lIH8K2go7mWDoMRwxTtWHG1pIHK3IvkHtfHvugieljaCGIhF8Z+OoRsCShczTZgZpgUovLRPtxcVk382Lk98mKsTd3Q3e1HF1HhavQfwJY42i+/iaqBa+guK75Zt8UF17WTlEzDuR0o0+spaxlqOzwasRulS9OU8fUCagna0VDHdQdOgwph0sBkmK8oHZxOPlWsye7ZXH3mcwNnkJu8Jphu/nqFrYdFglHqQPjMOE45Acf2H6n4grgqUA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Z8xImAzcHFUp7/tNNBFpzyTj9ui6O/8KFqJpya7vogg=; b=MGBP5vof+C1V1lju+2HIdLTAkpIWgaZbmLJCP/3V8s9Akd0AqKu92x+u7VsneXUs8FvwtuSf4qiru0viWbvCPO3U3yLIYKYnCHV/oWVF1KohckrBdFhs+y3YzcQI2VCaaTZ88iHWCXtD6aNOyKuALhhgvbia3gKgi/Hwe+b3hz8=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
CC: Stephen Provine <stephpr AT microsoft DOT com>
Subject: Re: Future setup regression caused by 'mkdir: always check-for-existence' commit
Date: Mon, 26 Aug 2019 18:24:08 +0000
Message-ID: <d8ae01c9-ddf5-560e-2542-25a8d6943184@cornell.edu>
References: <MWHPR21MB08452B51987E8A239851F7BEB9A10 AT MWHPR21MB0845 DOT namprd21 DOT prod DOT outlook DOT com> <860a3bd2-fc37-27c0-54f3-0fce8add7c24 AT cornell DOT edu> <MWHPR21MB0845636B4E90AAC4F4BF959EB9A10 AT MWHPR21MB0845 DOT namprd21 DOT prod DOT outlook DOT com>
In-Reply-To: <MWHPR21MB0845636B4E90AAC4F4BF959EB9A10@MWHPR21MB0845.namprd21.prod.outlook.com>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu;
x-ms-oob-tlc-oobclassifiers: OLM:9508;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: xSK0We3Rgq7JbnbVKF5Vbm8mF2h93utYlfBCNshCeUjQwBwaYI2SiHqRcspjuDWm3GNbrFap5J9z4wHrYbewsw==
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x7QIOndW021143

[Please don't top-post on this list.  Thanks.]

On 8/26/2019 1:33 PM, Stephen Provine via cygwin wrote:
> It's possible that this issue contributes to the problem, but the fact that you can manually create the "dev" directory outside of Cygwin (just mkdir from Windows command prompt) to fix the problem tells me otherwise. If I understand the logic change in commit b0c033bf3fae810b9e5a5c69f17bd4de63725691, it would indicate to me that "mkdir 0755 /dev" in a post-install bash script (regardless of which one) would no longer work when it previously worked.

I don't think you understand the logic change in that commit.  An attempt to 
create an existing directory would already fail before that commit; the failure 
would occur in the call to fh->mkdir().  The commit in question simply 
guarantees that the error code is EEXIST.  Take a look at the commit message.

Also, what postinstall script are you referring to that calls "mkdir /dev" 
without either checking for existence or using "mkdir -p"?  Cygwin's bash 
postinstall script doesn't do this.

(You must have missed Eric's reply to your original post, in which he asked the 
same question.)

> I'd be happy to try the test release for cygwin-3.1.0, but I don't know how to find it. Can you provide a link?

Just run's Cygwin's setup program, select the cygwin package, and select the 
test release (currently 3.1.0-0.2).

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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