| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 |
| X-Spam-Check-By: | sourceware.org |
| MIME-Version: | 1.0 |
| Subject: | RE: mkdir differences between 1.5.25 and 1.7 |
| Date: | Thu, 29 Oct 2009 14:33:09 -0700 |
| Message-ID: | <F3F5304BB3DD2445AF37A9E799FF6EE1092BC5D6@CAVS1.sanmateo.corp.akamai.com> |
| In-Reply-To: | <20091029083715.GL28753@calimero.vinschen.de> |
| References: | <20091029083715 DOT GL28753 AT calimero DOT vinschen DOT de> |
| From: | "Egerton, Jim" <jegerton AT akamai DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
> That's fixed in CVS.
Excellent! I'm not familiar with the Cygwin build schedule - how often ar=
e the packages updated so I can give this another try?
> > I also ran into a problem with the mkdir "C" API which may or may not
> > be related. As far as I can tell, the permissions mask passed to
> > mkdir with 1.7 is ignored. The chmod API works fine.
>=20
> Works fine for me. Are you sure the directory you tested this on is
> not mounted with the "noacl" option?
It isn't mounted noacl - sorry I didn't mention that.
$ mount | grep ' / '
C: on / type ntfs (binary)
I know you frown on mounting C: as /, but unfortunately there is a lot of h=
istory predating my presence that depends on this.
Test program:
$ cat x.cc
#include <stdio.h>
#include <sys/stat.h>
int main(int argc, char *argv[]) {
mkdir("/tmp/foo", 0777);
}
$ ls -ld /tmp/foo
ls: cannot access /tmp/foo: No such file or directory
$ ./x
$ ls -ld /tmp/foo
drwxr-xr-x 1 root Administrators 0 Oct 29 20:27 /tmp/foo
For what it's worth, this isn't nearly as problematic as the lost ACL's as =
I can always follow each mkdir call with a chmod - that seems to work fine.
Thanks Corinna,
jim
--
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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |