X-Recipient: archive-cygwin@delorie.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:reply-to:to:subject:date:message-id
	:references:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=LlomOfUvHsiBRs0Egzcx6G3VOMrHw
	KKV+K17ONlj+/n6+e8KD4xxT5f/z22HOXQ/IC57PubEU02ZNpvkvoY+gzkPEeqqA
	Jh4T5DZ4z69k7zMPTBNGVyA+JNPtIR5THvHe1wabElhy6eI2C6LZuXfdWzngq0n0
	dIkzZKpPTkWfFY=
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:reply-to:to:subject:date:message-id
	:references:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=NlSAys9rhNZ3McgQatCMx2+LaQw=; b=gst
	ePLaPXpmdFJSE4rKdagiaIilJZuZ/B02VE8JrJUJItg3sWgNRJvtn5G8XK02J0/Q
	py0pvt+tIeXHOjmRFYao2aH3ArWRceXwEACHBTZeyN01/Gc1Cm42xYDTNm8aNGIA
	uYqTzVaK2oSozTAPsbsOfXH4w4aWeqnNWB/2ng/E=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-6.7 required=5.0 tests=BAYES_00,GIT_PATCH_2,KAM_LOTSOFHASH,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.1 spammy=brown, Brown, 0755
X-HELO: NAM01-BY2-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fe/Aeb7Caow0SpP8eF2amjO0W9dofEm6wDGIXBZC4zXR6WQcosIHtr9VVssSK0bezjz3foSrNxjyuFaVwndSBcPgh6OAlx7gvk7kY+kD2xH8JEZ525PfFHDgh4LCc0exAa8kyAi4IrSTQJdsWvkPd6egF7rLtuL2Cai8wEpoO1wI1Sw1FzvETDX63D/p5hwMve13u7aMkqqebt1l6fo80dszg0Gyb66qkMyvCNzMJ47V7mW/0YqkPDzW+GaOLoIo+Ax07Yfh22uUtrHH5d6TUaRpspqVVU9izdzP39BdBXVLRfooK5x27WKhBIDWCEUsZV3YmXu12yIEQPYNt1gEyA==
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=NRVekl5PKJU/6W3engbDx3/t7/1AVT+Ho403kVommFY=; b=KZQJcxwIdRDSxvMbI6A8h5FuFrPUOxunETMwDJee+XYfThUPkQ1ET3tFfiUDNijPCSRB2zQ3W0/s3/EzIgp8H8yAQVeZI/xlxAOTozLBp5s29dulm0uHxxgaAms3/RwCLAxn7ev3+jMEab9yt2blK16piPGTDQ8ZNIBj/6SXG1Vr5VzBx2JFIJLXEe7f68h69Z/lR+tf31cCpc2xNQLmm8oHudT74/RA6Bw0QDDIytqIQgldJ0T+LEQaoSJQRAE1bqsRTke327nR1kgM8U0l56zMlJIqY2kRAqa3CloBMtxSFQQSms5r67EnjzOumksR1LyjXAWnxr3eQD66yEP7Xw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NRVekl5PKJU/6W3engbDx3/t7/1AVT+Ho403kVommFY=; b=lG51y5NOd8hu4KYDdkDu66n8OzmA+cdY2fDJhP8V6fRK7eFmymz7lNcfcVIGFBFSwfqwTIfWWZBntl7ITxjrOhks7xRTrdOy56qaCUw0CqM2IL0Jo/lbBMeR0UsjmEtUDzOkCq3BrMhHgcvMl2KQovNEzaltmBo+s74UNgRpWqM=
From: "Stephen Provine via cygwin" <cygwin@cygwin.com>
Reply-To: Stephen Provine <stephpr@microsoft.com>
To: Ken Brown <kbrown@cornell.edu>, "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: Future setup regression caused by 'mkdir: always check-for-existence' commit
Date: Mon, 26 Aug 2019 17:33:15 +0000
Message-ID: <MWHPR21MB0845636B4E90AAC4F4BF959EB9A10@MWHPR21MB0845.namprd21.prod.outlook.com>
References: <MWHPR21MB08452B51987E8A239851F7BEB9A10@MWHPR21MB0845.namprd21.prod.outlook.com> <860a3bd2-fc37-27c0-54f3-0fce8add7c24@cornell.edu>
In-Reply-To: <860a3bd2-fc37-27c0-54f3-0fce8add7c24@cornell.edu>
authentication-results: spf=none (sender IP is ) smtp.mailfrom=stephpr@microsoft.com;
x-ms-exchange-purlcount: 2
x-ms-oob-tlc-oobclassifiers: OLM:9508;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 3Cqrtp6ZW0vwmJZN/fasFvpqWk6mRlj+g71MQM9J+bmE4kWeYe5PnEGXkcom/bTFOI5GizlLB71X3bFG7Ar6dQ==
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id x7QHXppx016683

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. This ultimately means that the /dev/fd directory does not exist and that files like /dev/fd/63 cannot be created (the underlying error is "Filesystem is read-only", because the "dev" directory doesn't actually exist except in Cygwin). It's quite possible that if /dev/fd/63 can be created that there are some subsequent FIFO issues, but in this case the file can't even be created in the first place.

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?

Thanks,
Stephen

-----Original Message-----
From: Ken Brown <kbrown@cornell.edu> 
Sent: Monday, August 26, 2019 10:04 AM
To: cygwin@cygwin.com
Cc: Stephen Provine <stephpr@microsoft.com>
Subject: Re: Future setup regression caused by 'mkdir: always check-for-existence' commit

On 8/26/2019 11:25 AM, Stephen Provine via cygwin wrote:
> After this change (commit b0c033bf3fae810b9e5a5c69f17bd4de63725691), the Git for Windows setup (and future Cygwin setups) do not correctly configure bash features because the post-install step for configuring the /dev directory does not work any more. It used to be that "mkdir -m 755 /dev" would succeed, but now it returns a "File exists" error, after which attempts to create the 'shm' and 'mqueue' directories fail and the /dev/fd, /dev/std{in,out,err} links are not created. This causes some bash features to not work. The fix (validated on Git for Windows) would be for setups to pre-create this directory outside of the Cygwin environment before running the post-install steps.
> 
> See https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgit-for-windows%2Fgit%2Fissues%2F2291%23issuecomment-524433693&amp;data=02%7C01%7Cstephpr%40microsoft.com%7C227fabc69f4e434ae12a08d72a4763d2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637024358495313120&amp;sdata=16rboEMc6kGEAzIWDGTjjg%2FVLeuguIbBh%2F9cJMl0oZI%3D&amp;reserved=0 for the in-depth analysis. Note, this is not a current issue in Cygwin, but is believed to become a FUTURE issue with the next release.

It looks like you've bumped into the bug reported here:

   https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcygwin.com%2Fml%2Fcygwin%2F2019-07%2Fmsg00152.html&amp;data=02%7C01%7Cstephpr%40microsoft.com%7C227fabc69f4e434ae12a08d72a4763d2%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637024358495313120&amp;sdata=Ua%2BocDgveO3LqqSP0SnzemAihSysyV3jvae5WMxVA1M%3D&amp;reserved=0

This was a bug in a development snapshot, and it has already been fixed.  You should try the test release for cygwin-3.1.0 to confirm this.

I don't think this problem has anything to do with commit b0c033bf3fae810b9e5a5c69f17bd4de63725691.

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


