This is the mail archive of the cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]
Re: Repost: Patch, Version 2: UNIX-like permissions on objects
- To: Corinna Vinschen <corinna.vinschen@cityweb.de>
- Subject: Re: Repost: Patch, Version 2: UNIX-like permissions on objects
- From: Geoffrey Noer <noer@cygnus.com>
- Date: Fri, 5 Mar 1999 13:16:23 -0800
- Cc: cygwin-developers@sourceware.cygnus.com, DJ Delorie <dj@delorie.com>, Christopher Faylor <cgf@cygnus.com>, Sergey Okhapkin <sos@prospect.com.ru>
- Delivered-To: listarch-cygwin-developers@sourceware.cygnus.com
- Delivered-To: mailing list cygwin-developers@sourceware.cygnus.com
- In-Reply-To: <36DE93A5.7BDF02CC@cityweb.de>; from Corinna Vinschen on Thu, Mar 04, 1999 at 03:07:33PM +0100
- Mailing-List: contact cygwin-developers-help@sourceware.cygnus.com; run by ezmlm
- References: <01BE46C2.29B35190@sos> <36D8F66F.CB411F58@cityweb.de> <19990228222910.A14921@cygnus.com> <36DDBD54.3B6417E8@cityweb.de> <36DE93A5.7BDF02CC@cityweb.de>
- Sender: cygwin-developers-owner@sourceware.cygnus.com
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@cygnus.com
Cygnus Solutions