This is the mail archive of the cygwin-apps-cvs mailing list for the cygwin-apps project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

setup ChangeLog IOStreamProvider.h LogFile.cc ...


CVSROOT:	/sourceware/projects/cygwin-apps-home/cvsfiles
Module name:	setup
Changes by:	corinna@sourceware.org	2008-08-19 21:04:15

Modified files:
	.              : ChangeLog IOStreamProvider.h LogFile.cc 
	                 UserSettings.cc archive.cc archive_tar.cc 
	                 archive_tar.h archive_tar_file.cc 
	                 compress_bz.cc compress_bz.h compress_gz.cc 
	                 compress_gz.h compress_lzma.cc compress_lzma.h 
	                 desktop.cc download.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 main.cc 
	                 mkdir.cc mkdir.h mklink2.cc mount.cc 
	                 package_db.cc script.cc win32.cc win32.h 

Log message:
	* install.cc (struct std_dirs_t): New type.
	(class Installer): Change type of StandardDirs to std_dirs_t.
	(Installer::StandardDirs): Store filename and mode.
	(do_install_thread): Call io_stream::mkpath_p with name and mode from
	Installer::StandardDirs.
	* main.cc (main): Call setDefaultSecurity on global nt_sec.
	* IOStreamProvider.h (IOStreamProvider::mkdir_p): Add mode parameter.
	* LogFile.cc (LogFile::log_save): Call io_stream::mkpath_p with 0755
	mode.
	* UserSettings.cc (UserSettings::settingFileForSave): Ditto.
	* desktop.cc (make_link): Ditto.
	* download.cc (download_one): Ditto.
	* ini.cc (do_remote_ini): Ditto.
	(do_ini_thread): Ditto.
	* package_db.cc (packagedb::flush): Ditto.
	* archive.cc (archive::extract_file): Ditto.  Call set_mtime_and_mode
	with mode from archive.  Add code to handle directory permissions as
	well.
	* archive_tar.cc (archive_tar::get_mtime): Return time_t.  Reformat.
	(archive_tar::get_mode): New method.
	* archive_tar.h (class archive_tar_file): Fix prototypes.  Replace
	prototype for set_mtime with prototype for set_mtime_and_mode.
	(class archive_tar): Ditto.
	* archive_tar_file.cc (archive_tar_file::get_mtime): Return time_t.
	(archive_tar_file::get_mode): New method returning mode from tar header.
	* compress_bz.cc (compress_bz::set_mtime_and_mode): Replace set_mtime.
	(compress_bz::get_mtime): Return time_t.
	(compress_bz::get_mode): New function.
	* compress_gz.cc: Ditto.
	* compress_lzma.cc: Ditto.
	* io_stream.cc (io_stream::mkpath_p): Take additional file mode.
	Call mkdir_p with additional file mode.
	* io_stream_cygfile.cc (CygFileProvider::mkdir_p): Take additional file
	mode.
	(cygmkdir_p): Ditto.  Call mkdir_p with additional file mode.
	(io_stream_cygfile::set_mtime_and_mode): Replace set_mtime.  Call
	SetPosixPerms.
	* io_stream_file.cc (FileProvider::mkdir_p): Take additional file mode.
	(io_stream_file::set_mtime_and_mode): Replace set_mtime.
	* mkdir.cc (init_ntfuncs): New function to initialize function pointers
	from ntdll.dll.
	(mkdir_p): Take additional file mode.  On NT, use NT functions to create
	directory.  Call SetPosixPerms.
	* compress_bz.h: Change prototypes accordingly.
	* compress_gz.h: Ditto.
	* compress_lzma.h: Ditto.
	* io_stream.h: Ditto.
	* io_stream_cygfile.h: Ditto.
	* io_stream_file.h: Ditto.
	* io_stream_memory.h: Ditto.
	* mkdir.h: Ditto.
	* mklink2.cc (mkcygsymlink_nt): Open file with STANDARD_RIGHTS_ALL
	access and FILE_FLAG_BACKUP_SEMANTICS flag.  Call SetPosixPerms.
	* mount.cc (from_fstab): Open file with FILE_FLAG_BACKUP_SEMANTICS.
	* script.cc (OutputLog::OutputLog): Call io_stream::mkpath_p with 0755
	mode.  Open file with FILE_FLAG_BACKUP_SEMANTICS.
	* win32.cc (SetPosixPerms): New function to set POSIX-like permissions.
	(nt_sec): New global NTSecurity variable.
	(NTSecurity::setDefaultDACL): Open token with TOKEN_ADJUST_PRIVILEGES.
	(NTSecurity::setDefaultSecurity): Enable SE_BACKUP_NAME and
	SE_RESTORE_NAME privileges if available.
	* win32.h (SetPosixPerms): Add prototype.
	(class NTSecurity): Make everyOneSID and administratorsSID public.
	(nt_sec): Declare.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.606&r2=2.607
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/IOStreamProvider.h.diff?cvsroot=cygwin-apps&r1=2.4&r2=2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/LogFile.cc.diff?cvsroot=cygwin-apps&r1=2.17&r2=2.18
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/UserSettings.cc.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/archive.cc.diff?cvsroot=cygwin-apps&r1=2.14&r2=2.15
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/archive_tar.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.10&r2=2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/archive_tar_file.cc.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_bz.cc.diff?cvsroot=cygwin-apps&r1=2.13&r2=2.14
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_bz.h.diff?cvsroot=cygwin-apps&r1=2.10&r2=2.11
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_gz.cc.diff?cvsroot=cygwin-apps&r1=2.13&r2=2.14
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_gz.h.diff?cvsroot=cygwin-apps&r1=2.7&r2=2.8
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_lzma.cc.diff?cvsroot=cygwin-apps&r1=2.1&r2=2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/compress_lzma.h.diff?cvsroot=cygwin-apps&r1=2.1&r2=2.2
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/desktop.cc.diff?cvsroot=cygwin-apps&r1=2.49&r2=2.50
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/download.cc.diff?cvsroot=cygwin-apps&r1=2.49&r2=2.50
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ini.cc.diff?cvsroot=cygwin-apps&r1=2.48&r2=2.49
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/install.cc.diff?cvsroot=cygwin-apps&r1=2.88&r2=2.89
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream.cc.diff?cvsroot=cygwin-apps&r1=2.21&r2=2.22
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream.h.diff?cvsroot=cygwin-apps&r1=2.13&r2=2.14
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_cygfile.cc.diff?cvsroot=cygwin-apps&r1=2.24&r2=2.25
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_cygfile.h.diff?cvsroot=cygwin-apps&r1=2.12&r2=2.13
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_file.cc.diff?cvsroot=cygwin-apps&r1=2.22&r2=2.23
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_file.h.diff?cvsroot=cygwin-apps&r1=2.9&r2=2.10
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/io_stream_memory.h.diff?cvsroot=cygwin-apps&r1=2.4&r2=2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/main.cc.diff?cvsroot=cygwin-apps&r1=2.46&r2=2.47
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mkdir.cc.diff?cvsroot=cygwin-apps&r1=2.7&r2=2.8
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mkdir.h.diff?cvsroot=cygwin-apps&r1=2.2&r2=2.3
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mklink2.cc.diff?cvsroot=cygwin-apps&r1=2.4&r2=2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/mount.cc.diff?cvsroot=cygwin-apps&r1=2.27&r2=2.28
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/package_db.cc.diff?cvsroot=cygwin-apps&r1=2.38&r2=2.39
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/script.cc.diff?cvsroot=cygwin-apps&r1=2.27&r2=2.28
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.cc.diff?cvsroot=cygwin-apps&r1=2.4&r2=2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.h.diff?cvsroot=cygwin-apps&r1=2.15&r2=2.16


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]