This is the mail archive of the email@example.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: A new Win32 header problem
- To: Anders Norlander <firstname.lastname@example.org>
- Subject: Re: A new Win32 header problem
- From: Corinna Vinschen <email@example.com>
- Date: Tue, 06 Apr 1999 15:09:32 +0200
- CC: Geoffrey Noer <firstname.lastname@example.org>, email@example.com
- References: <19990331230036.A3503@cygnus.com> <19990331214352.A32155@cygnus.com> <3703498C.72131F58@cityweb.de> <19990401232538.A776@cygnus.com> <37064255.C21C87A0@hem2.passagen.se>
Anders Norlander wrote:
> Geoffrey Noer wrote:
> > [...]
> > On Thu, Apr 01, 1999, Corinna Vinschen wrote:
> > [...]
> > > After patching this, the new code is nevertheless not able, to write the new
> > > security descriptor for the new owner with `BackupWrite()' in any case.
> > > Strange: If I'm logged in as `administrator(500)', writing the owner sid for
> > > `administrator(500)' or `administrators(544)' is possible, but writing a sid
> > > for another user (e.g. `admin(1010)' which is member of `administrators(544)', too)
> > > is impossible.
> > > This was not the case before the winsup-version with the new windows header files!
> > > Once again: This error happens in `chown()' _without_ my patches!
> I don't know what causes this, what does GetLastError() say?
The error code from BackupWrite() is 1307, aka ERROR_INVALID_OWNER:
"This security ID may not be assigned as the owner of this object."