This is the mail archive of the
cygwin-apps-cvs
mailing list for the cygwin-apps project.
setup ChangeLog IOStreamProvider.h IniParseFin ...
- From: corinna at sourceware dot org
- To: cygwin-apps-cvs at sourceware dot org
- Date: 18 Dec 2009 11:59:54 -0000
- Subject: setup ChangeLog IOStreamProvider.h IniParseFin ...
CVSROOT: /cvs/cygwin-apps
Module name: setup
Changes by: corinna@sourceware.org 2009-12-18 11:59:54
Modified files:
. : ChangeLog IOStreamProvider.h
IniParseFindVisitor.cc LogFile.cc
UserSettings.cc archive.cc archive_tar.h
compress_bz.cc compress_bz.h compress_gz.cc
compress_gz.h compress_lzma.cc compress_lzma.h
cygpackage.cc filemanip.cc ini.cc install.cc
io_stream.cc io_stream.h io_stream_cygfile.cc
io_stream_cygfile.h io_stream_file.cc
io_stream_file.h io_stream_memory.h mkdir.cc
mklink2.cc package_db.cc win32.cc win32.h
Log message:
Throughout, revert prototypes and methods set_mtime_and_mode to
set_mtime and only care for the file timestamp.
Throughout, accommodate additional mode_t parameter in call to
io_stream::open.
* IOStreamProvider.h (IOStreamProvider::open): Add mode_t parameter.
* archive.cc (archive::extract_file): Reorder creation of in and tmp
to get the file mode from the tar archive earlier. Call io_stream::open
with additional mode from tar archive. Accommodate reversion to
set_mtime.
* filemanip.cc (nt_wfopen): Remove retry loop. Instead initialize
OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
perms to create correct ACL on file creation. Remove subsequent call
to nt_sec.SetPosixPerms.
* io_stream.cc (io_stream::open): Take additional mode_t parameter
and connect through to IOStreamProvider's open.
* io_stream.h (io_stream::open): Add mode_t parameter.
* io_stream_cygfile.cc (CygFileProvider::open): Ditto.
(io_stream_cygfile::io_stream_cygfile): Ditto. Call nt_wfopen with
incoming mode_t parameter. Make sure .exe and .dll files always
have execute permissions set.
(io_stream_cygfile::set_mtime): Remove retry loop and open file with
just GENERIC_WRITE access.
* io_stream_cygfile.h (io_stream_cygfile::io_stream_cygfile): Add mode_t
parameter.
* io_stream_file.cc (FileProvider::open): Ditto.
(io_stream_file::io_stream_file): Ditto. Call nt_wfopen with incoming
mode_t parameter.
* io_stream_file.h (io_stream_file::io_stream_file): Add mode_t
parameter.
* io_stream_memory.h (class io_stream_memory): Remove mode member.
Just return 0 from get_mode.
* mkdir.cc (mkdir_p): Remove retry loop. Instead initialize
OBJECT_ATTRIBUTES with matching POSIX perms according to incoming
perms to create correct ACL on file creation. Remove subsequent call
to nt_sec.SetPosixPerms.
* mklink2.cc (mkcygsymlink_nt): Remove retry loop. Instead initialize
SECURITY_ATTRIBUTES with matching POSIX perms to create correct ACL on
file creation.
* win32.cc (NTSecurity::GetPosixPerms): New function to generate
POSIX ACL. Default to current owner and current primary group for
owner/group permissions.
(NTSecurity::SetPosixPerms): Let GetPosixPerms create the DACL.
(NTSecurity::setAdminGroup): Set groupSID to admins SID if successful.
(NTSecurity::setDefaultSecurity): Store user SID in ownerSID member.
Default groupSID to original primary group.
* win32.h (struct acl_t): Define here.
(class NTSecurity): Rename ownerSID and groupSID to cr_ownerSID and
cr_groupSID. Change throughout. Add members ownerSID and groupSID.
Declare new method GetPosixPerms.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.668&r2=2.669
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/IOStreamProvider.h.diff?cvsroot=cygwin-apps&r1=2.5&r2=2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/IniParseFindVisitor.cc.diff?cvsroot=cygwin-apps&r1=2.12&r2=2.13
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/LogFile.cc.diff?cvsroot=cygwin-apps&r1=2.19&r2=2.20
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/UserSettings.cc.diff?cvsroot=cygwin-apps&r1=2.15&r2=2.16
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/archive.cc.diff?cvsroot=cygwin-apps&r1=2.15&r2=2.16
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/archive_tar.h.diff?cvsroot=cygwin-apps&r1=2.11&r2=2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_bz.cc.diff?cvsroot=cygwin-apps&r1=2.14&r2=2.15
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_bz.h.diff?cvsroot=cygwin-apps&r1=2.11&r2=2.12
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_gz.cc.diff?cvsroot=cygwin-apps&r1=2.14&r2=2.15
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_gz.h.diff?cvsroot=cygwin-apps&r1=2.8&r2=2.9
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_lzma.cc.diff?cvsroot=cygwin-apps&r1=2.2&r2=2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_lzma.h.diff?cvsroot=cygwin-apps&r1=2.2&r2=2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/cygpackage.cc.diff?cvsroot=cygwin-apps&r1=2.19&r2=2.20
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/filemanip.cc.diff?cvsroot=cygwin-apps&r1=2.29&r2=2.30
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ini.cc.diff?cvsroot=cygwin-apps&r1=2.50&r2=2.51
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/install.cc.diff?cvsroot=cygwin-apps&r1=2.92&r2=2.93
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream.cc.diff?cvsroot=cygwin-apps&r1=2.22&r2=2.23
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream.h.diff?cvsroot=cygwin-apps&r1=2.15&r2=2.16
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_cygfile.cc.diff?cvsroot=cygwin-apps&r1=2.30&r2=2.31
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_cygfile.h.diff?cvsroot=cygwin-apps&r1=2.14&r2=2.15
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_file.cc.diff?cvsroot=cygwin-apps&r1=2.25&r2=2.26
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_file.h.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_memory.h.diff?cvsroot=cygwin-apps&r1=2.5&r2=2.6
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mkdir.cc.diff?cvsroot=cygwin-apps&r1=2.13&r2=2.14
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mklink2.cc.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/package_db.cc.diff?cvsroot=cygwin-apps&r1=2.42&r2=2.43
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.cc.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.h.diff?cvsroot=cygwin-apps&r1=2.23&r2=2.24