www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/07/30/01:49:33

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Message-ID: <3B64F567.6060304@ece.gatech.edu>
Date: Mon, 30 Jul 2001 01:49:27 -0400
From: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010713
X-Accept-Language: en-us
MIME-Version: 1.0
To: cygwin-developers AT sources DOT redhat DOT com
Subject: Re: Problems with autoconf-2.52 testsuite using current CVS Cygwin
References: <996329431 DOT 27668 DOT ezmlm AT sources DOT redhat DOT com> <3B63432E DOT 6050309 AT ece DOT gatech DOT edu> <3B649305 DOT 2090302 AT ece DOT gatech DOT edu> <3B64C0A9 DOT 1080700 AT ece DOT gatech DOT edu>

Charles Wilson wrote:


> 
> Changes by:    corinna AT sources DOT redhat DOT com    2001-07-09 02:02:42
> Modified files:
>     winsup/cygwin  : ChangeLog security.cc
> Log message:
>     * security.cc (alloc_sd): Don't set inheritance attribute for
>     permissions given to directories.
> 

Well, this is definitely the culprit; this change plus W2K/NTFS.  I 
don't get the problematic behavior on NT/NTFS.  However, I know that 
Corinna put this in for a reason -- but I don't remember what it was. :-(

Anyway, check this out (under cygwin1-20010728.dll):


$ cd /tmp
$ mkdir a
$ getfacl a

# file: a
# owner: 1000
# group: 513
user::rwx
user:500:rwx
group::rwx
group:544:rwx
group:545:rwx
mask::rwx
other::r-x
default:user:500:rwx
default:group:544:rwx
default:group:545:rwx
default:mask::---

$ cd a
$ mkdir b
$ getfacl b

# file: b
# owner: 1000
# group: 513
user::---
user:500:rwx
group::---
group:544:rwx
group:545:rwx
mask::---
other::---
default:user:500:rwx
default:group:544:rwx
default:group:545:rwx
default:mask::---

$ touch c
$ getfacl c

# file: c
# owner: 1000
# group: 513
user::---
user:500:rwx
group::---
group:544:rwx
group:545:rwx
mask::---
other::---

I'm not sure if the answer is to revert Corinna's patch, or to add more 
logic to the file/directory creation logic.  Any comments?

--Chuck

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019