This is the mail archive of the
cygwin-apps-cvs
mailing list for the cygwin-apps project.
setup ChangeLog io_stream_cygfile.cc mkdir.cc ...
- From: corinna at sourceware dot org
- To: cygwin-apps-cvs at sourceware dot org
- Date: 20 Aug 2008 10:33:25 -0000
- Subject: setup ChangeLog io_stream_cygfile.cc mkdir.cc ...
CVSROOT: /sourceware/projects/cygwin-apps-home/cvsfiles
Module name: setup
Changes by: corinna@sourceware.org 2008-08-20 10:33:25
Modified files:
. : ChangeLog io_stream_cygfile.cc mkdir.cc
mklink2.cc win32.cc win32.h
Log message:
* io_stream_cygfile.cc (io_stream_cygfile::set_mtime_and_mode):
Accommodate SetPosixPerms being method of nt_sec.
* mkdir.cc (mkdir_p): Ditto.
* mklink2.cc (mkcygsymlink_nt): Ditto.
* win32.cc: Slightly rearrange.
(NTSecurity::SetPosixPerms): Make SetPosixPerms method of NTSecurity
rather than stand-alone function. Remove dynamic allocation for
security descriptors in favor of static allocation. Drop out
preliminary if well-known SIDs are not initialized. Slightly change
and rearrange comments. Add creating NULL SID ACE for special
permissions.
(NTSecurity::initialiseWellKnownSIDs): New function, replacing
NTSecurity::initialiseEveryOneSID. Initialize all well-known SIDs
here. Set wellKnownSIDsinitialized to true on success.
(NTSecurity::setDefaultDACL): Don't call initialiseEveryOneSID. Change
comment. Drop setting failed. Don't open process token here.
(NTSecurity::setBackupPrivileges): New function.
(NTSecurity::setDefaultSecurity): Call initialiseWellKnownSIDs.
Open process token here. Disable setting primary group. Add comment
to explain why.
* win32.h (SetPosixPerms): Move to NTSecurity.
(class NTSecurity): Add SetPosixPerms method. Make all SIDs private
again. Make NoteFailedAPI private. Add setBackupPrivileges method.
Rename usid to UsersSID. Remove failed method and _failed member.
Add wellKnownSIDsinitialized accessors and _wellKnownSIDsinitialized
member.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.607&r2=2.608
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_cygfile.cc.diff?cvsroot=cygwin-apps&r1=2.25&r2=2.26
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mkdir.cc.diff?cvsroot=cygwin-apps&r1=2.8&r2=2.9
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mklink2.cc.diff?cvsroot=cygwin-apps&r1=2.5&r2=2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.cc.diff?cvsroot=cygwin-apps&r1=2.5&r2=2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.h.diff?cvsroot=cygwin-apps&r1=2.16&r2=2.17