delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/03/05/16:16:38

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Date: Fri, 5 Mar 1999 13:16:23 -0800
From: Geoffrey Noer <noer AT cygnus DOT com>
To: Corinna Vinschen <corinna DOT vinschen AT cityweb DOT de>
Cc: cygwin-developers AT sourceware DOT cygnus DOT com, DJ Delorie <dj AT delorie DOT com>,
Christopher Faylor <cgf AT cygnus DOT com>,
Sergey Okhapkin <sos AT prospect DOT com DOT ru>
Subject: Re: Repost: Patch, Version 2: UNIX-like permissions on objects
Message-ID: <19990305131623.A746@cygnus.com>
References: <01BE46C2 DOT 29B35190 AT sos> <36D8F66F DOT CB411F58 AT cityweb DOT de> <19990228222910 DOT A14921 AT cygnus DOT com> <36DDBD54 DOT 3B6417E8 AT cityweb DOT de> <36DE93A5 DOT 7BDF02CC AT cityweb DOT de>
Mime-Version: 1.0
X-Mailer: Mutt 0.95.1i
In-Reply-To: <36DE93A5.7BDF02CC@cityweb.de>; from Corinna Vinschen on Thu, Mar 04, 1999 at 03:07:33PM +0100

On Thu, Mar 04, 1999, Corinna Vinschen wrote:
[...]
> I found the problem, it's really mysterious! Under strange circumstances,
> the WinNT function `EqualSid()' smashes, if it has to compare with the
> world sid (UID 0 `Everyone'). I have solved this by patching my code to the
> following behaviour:
> 
>       Extract the UID from every SID and compare the resulting int's.
> 
> This works on my stand alone workstation, but I need feedback:
> 
>       Is this an adequate proceeding in NT domains?
[...]

And the second problem:

> The solution is, to set special flags in the ACE_HEADER struct:
> 
> 	ace->Header.AceFlags |= OBJECT_INHERIT_ACE | CONTAINER_INHERIT_ACE;
> 
> This results in the same file permissions as the directory
> permissions itself.  This is the expected behaviour, IMHO.

I have your original patch applied.  The resulting cygwin1.dll builds
but doesn't run close to correctly on my NT 4 SP4 machine as expected.
Please send me the patch that gets around the two above problems in
the way you suggest and I'll try it out...

Chris, DJ, any comments/opinions on how we should proceed?

Thanks,

-- 
Geoffrey Noer		Email: noer AT cygnus DOT com
Cygnus Solutions

- Raw text -


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