This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Future setup regression caused by 'mkdir: always check-for-existence' commit
- 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>
- Date: Mon, 26 Aug 2019 18:24:08 +0000
- Subject: Re: Future setup regression caused by 'mkdir: always check-for-existence' commit
- 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
- 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-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WCAiAF0wuiywp1YpEpZ8i8z2rroCaqVA6ckX3xuPK4bML7W1LkLWSbh2x7/dOMmU0XMsPa0VXrsi4dYPXuTFBIb1IQK2nJBNeRZ85vVlzJDMGnmIsneH0YAStIzAVfg2nJGwdvR4Eu0mY+uizXKhf9hdCfvMU3TEWCZxWAT1Ss4VQGDGuAcij1TcqW0sypJ7vPTzBJoPrUhvRnbxbVZYHNl8To0rQH3wnWf0tNeb/h6fmGF7SV/klNy3YV3ivwKq+cQNaUrV57mc3Ab4NrAfZ2fmaTt9SkjJ2VrzqmtqQOCkQZXhqRBDK7nqP39w3rBgWQxPqI9uKUdUe5fs+VJyBQ==
- References: <MWHPR21MB08452B51987E8A239851F7BEB9A10@MWHPR21MB0845.namprd21.prod.outlook.com> <860a3bd2-fc37-27c0-54f3-0fce8add7c24@cornell.edu> <MWHPR21MB0845636B4E90AAC4F4BF959EB9A10@MWHPR21MB0845.namprd21.prod.outlook.com>
[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