X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
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.GL28753@calimero.vinschen.de>
From: "Egerton, Jim" <jegerton@akamai.com>
To: <cygwin@cygwin.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

> 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

