Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
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
Message-ID: <434E574A.4020900@byu.net>
Date: Thu, 13 Oct 2005 06:47:06 -0600
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
CC: cygwin@cygwin.com
Subject: Re: mkdir -p and EROFS
References: <101220051447.16978.434D21E5000D25EB0000425222007610640A050E040D0C079D0A@comcast.net> <87r7aqqvie.fsf@penguin.cs.ucla.edu>
In-Reply-To: <87r7aqqvie.fsf@penguin.cs.ucla.edu>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Paul Eggert on 10/12/2005 3:24 PM:
> Thanks for reporting this.  It is indeed a bug in
> coreutils/lib/mkdir-p.c.  It can be triggered by other errors too.
> This is hard to write a test case for, but I'd like to fix things.
> Does the following patch work for you?
> 
> 2005-10-12  Paul Eggert  <eggert@cs.ucla.edu>
> 
> 	* mkdir-p.c (make_dir_parents): Don't fail if an intervening mkdir
> 	fails due to EROFS, or due to EEXIST or other reasons for that matter.
> 	Problem reported by Eric Blake.
> 	(ENOSYS): Remove; no longer needed.

This patch also has the nice side effect that mkdir -p c:\dir succeeds
again, since it no longer filters on the EACCES being returned by
mkdir("c:").  Expect a coreutils-5.90-3 when I get a chance to bundle it
together in the next couple of days.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDTldK84KuGfSFAYARAq/TAKCRvMibO+DRhywZ7izSEl+D4haOiQCfRin2
w+JhK4opP6RApY0ixYQ46cc=
=HKes
-----END PGP SIGNATURE-----

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

