X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=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: mkdir differences between 1.5.25 and 1.7 Date: Wed, 28 Oct 2009 11:11:11 -0700 Message-ID: From: "Egerton, Jim" To: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi, I'm seeing a few things with mkdir and acl's I don't quite understand - OS= is Server 2008. First, from the shell I see different behaviors with mkdir on 1.5.25 and 1.= 7. On 1.5.25 ($ filever \\usr\\bin\\cygwin1.dll --a-- W32i DLL ENU 1005.= 25.0.0 shp 1,872,884 06-12-2008 cygwin1.dll) bash-3.2$ getfacl /tmp # file: /tmp # owner: root # group: Administrators user::rwx group::rwx group:Users:rwx mask:rwx other:rwx default:user::rwx default:group:SYSTEM:rwx default:group:Administrators:rwx default:group:Users:rwx default:mask:rwx bash-3.2$ mkdir /tmp/test bash-3.2$ getfacl /tmp/test # file: /tmp/test # owner: Administrator # group: None user::rwx group::rwx mask:rwx other:rwx default:user::rwx default:group::rwx default:other:rwx on 1-7 (filever \\usr\\bin\\cygwin1.dll --a-- W32i DLL ENU 1007.0.0.= 0 shp 2,472,737 10-23-2009 cygwin1.dll) bash-3.2$ getfacl /tmp # file: /tmp # owner: root # group: Administrators user::rwx user:LocalService:rwx group::rwx group:Users:rwx mask:rwx other:rwx default:user::rwx default:group:SYSTEM:rwx default:group:Administrators:rwx default:group:Users:rwx default:mask:rwx bash-3.2$ mkdir /tmp/test bash-3.2$ getfacl /tmp/test # file: /tmp/test # owner: Administrator # group: None user::rwx group::r-x mask:rwx other:r-x It looks like the default acls are getting lost.=20=20=20 I also ran into a problem with the mkdir "C" API which may or may not be re= lated. As far as I can tell, the permissions mask passed to mkdir with 1.= 7 is ignored. The chmod API works fine. Are either of these changes expected? Thanks for looking, 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