This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mkdir -p and EROFS


-----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]