]> cygwin.com Git - cygwin-apps/setup.git/commit
* UserSettings.cc (UserSettings::settingFileForLoad): Fix local load
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 11 May 2009 10:49:15 +0000 (10:49 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 11 May 2009 10:49:15 +0000 (10:49 +0000)
commit6dcfeb7d4e0c05fa0a31fa162581ef9b582156f5
tree96636549c1bcbb6c9842a923455db57ceaaddb51
parent4b47445f562dbb3a12866af45d0a302ec9de86f7
* UserSettings.cc (UserSettings::settingFileForLoad): Fix local load
path strings.
(UserSettings::settingFileForSave): Never store in cwd.
* autoload.c (ntdll): Autoload ntdll.dll functions here.
* desktop.cc (make_cygwin_bat): Use GetFileAttributesW rather than
_waccess.  Use nt_wfopen instead of _wfopen.
(save_icon): Ditto.
* filemanip.cc (get_file_size): Call io_stream::open with empty mode
string to avoid opening file twice.
(GetFileAttributesW): New function to replace Win32 function with
equivalent function opening files with backup intent.
(SetFileAttributesW): Ditto.
(MoveFileW): Ditto.
(DeleteFileW): Ditto.
(RemoveDirectoryW): Ditto.
(nt_wfopen): New function to replace _wfopen with equivalent function
opening files with backup intent.
* filemanip.h (nt_wfopen): Declare.
* io_stream_cygfile.cc (io_stream_cygfile::io_stream_cygfile): Initalize
lasterr to 0.  Allow empty mode and don't open file, if so.  Call
nt_wfopen rather than _wfopen.
(io_stream_cygfile::exists): Use GetFileAttributesW rather than
_waccess.
(io_stream_cygfile::get_size): Use CreateFileW/GetFileSize to get
file size on NT.
* io_stream_file.cc (io_stream_file::io_stream_file): Initalize lasterr
to 0.  Allow empty mode and don't open file, if so.  Call nt_wfopen
rather than _wfopen.
(io_stream_file::exists): Use GetFileAttributesW rather than _waccess.
(io_stream_file::remove): Don't try to remove non-existant file.
(io_stream_file::get_size): Use CreateFileW/GetFileSize to get
file size on NT.  Add comment to keep track of 2GB border.
* mkdir.cc: Remove function pointers for ntdll functions.
(init_ntfuncs): Remove function.
(mkdir_p): Drop call to init_ntfuncs.  Call ntdll functions directly
rather than over local function pointers.
* ntdll.h: New file.
* postinstall.cc (do_postinstall_reflector): Switch to admins group
as primary group after postinstall scripts have been written.
Explain why.
(do_postinstall): Add comment.
* res.rc: Bump copyright date.
* win32.h (class TokenGroupCollection): Remove.
* win32.cc (TokenGroupCollection::populate): Remove.
(TokenGroupCollection::find): Remove.
(NTSecurity::setDefaultSecurity): Drop reading token groups.  Just
try to switch to admins group as primary group.
14 files changed:
ChangeLog
UserSettings.cc
autoload.c
desktop.cc
filemanip.cc
filemanip.h
io_stream_cygfile.cc
io_stream_file.cc
mkdir.cc
ntdll.h [new file with mode: 0644]
postinstall.cc
res.rc
win32.cc
win32.h
This page took 0.035147 seconds and 5 git commands to generate.