Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2009-11-04 * cygcheck.cc (cygwin_dll_path): New global variable.Corinna Vinschen
(load_cygwin): Fetch cygwin DLL path and store in cygwin_dll_path. * strace.cc: Full ditto. * path.cc (read_mounts): First use the path stored in cygwin_dll_path, if available. Then fall back to fetching own path. Add comment. Drop printing warnings since they look funny in strace output.
2009-11-04 * path.cc (read_mounts): First get installation path from own path.Corinna Vinschen
Check if cygwin1.dll exists in same directory. Only if not, try to get installation path from setup registry key. Add ample warnings.
2009-11-04 * Makefile.in (cygpath.exe): Add -fno-threadsafe-statics to CXXFLAGS.Corinna Vinschen
2009-11-03 * security.cc (alloc_sd): Re-introduce setting the SE_DACL_PROTECTEDCorinna Vinschen
flag. Remove INHERITED_ACE flag from all inherited ACEs. Add comment. Fix ace_off counter in unrelated ACE loop. * wincap.cc: Re-add has_dacl_protect throughout. * wincap.h: Ditto.
2009-11-02 * security.cc (alloc_sd): Re-enable generating default permissionCorinna Vinschen
entries for directories.
2009-11-02 * dlfcn.cc (get_full_path_of_dll): Drop enforcing a .dll suffix.Corinna Vinschen
(dlopen): If last path component has no dot, append one to override automatic .dll suffix in LoadLibrary.
2009-11-02Final sync of pseudo-reloc.c with mingw64 and cygwinCharles Wilson
2009-11-02 * miscfuncs.h (transform_chars): Declare. Define inline variation here.Corinna Vinschen
* mount.cc (mount_info::from_fstab): Remove extern declaration of transform_chars. * path.cc (tfx_chars): Move to strfuncs.cc. (transform_chars): Ditto. * strfunc.cc (tfx_chars): Moved here from path.cc. (transform_chars): Ditto. (sys_cp_wcstombs): Make UNICODE private use area conversion roundtrip save for all characters. (sys_cp_mbstowcs): Ditto, by removing special case for UTF-8 sequences representing U+f0XX UNICODE chars. Fix typo in comment.
2009-11-02path.ccCorinna Vinschen
2009-11-02 * path.cc (tfx_chars): Constify.Corinna Vinschen
2009-11-01* Makefile.in: Use utils mingw front-end to generate non-cygwin binary.Christopher Faylor
2009-10-31 * new-features.sgml (ov-new1.7-misc): Add installation-specificCorinna Vinschen
unique object names description.
2009-10-31 * cygcheck.cc: Include cygprops.h.Corinna Vinschen
(del_orphaned_reg): New option variable. (unique_object_name_opt): Ditto. (handle_reg_installation): New function. (print_reg_installations): Ditto. (del_orphaned_reg_installations): Ditto. (memmem): Ditto. (handle_unique_object_name): Ditto. (dump_sysinfo): Call print_reg_installations from here. (usage): Add usage for new options --delete-orphaned-installation-keys, --enable-unique-object-names, --disable-unique-object-names, and --show-unique-object-names. (longopts): Add new options --delete-orphaned-installation-keys, --enable-unique-object-names, --disable-unique-object-names, and --show-unique-object-names. (main): Handle new options. * utils.sgml (cygcheck): Change documentaion accordingly.
2009-10-31 * transport_pipes.h (PIPE_NAME_PREFIX): New define.Corinna Vinschen
(PIPE_NAME_SUFFIX): Ditto. (class transport_layer_pipes): Convert _pipe_name from char pointer to wchar_t array. * transport_pipes.cc (transport_layer_pipes::transport_layer_pipes): Accommodate the fact that _pipe_name is a wchar_t array, rather than a char pointer. (transport_layer_pipes::transport_layer_pipes): Initialize _pipe_name with variable pipe name based in installation key fetched from Cygwin DLL. (transport_layer_pipes::accept): Call CreateNamedPipeW explicitely. (transport_layer_pipes::connect): Call CreateFileW and WaitNamedPipeW explicitely.
2009-10-31 * cygprops.h: New file.Corinna Vinschen
* dtable.cc (handle_to_fn): Add check for correct installation_key string in object name for pipes and ttys. * external.cc (cygwin_internal): Add CW_GET_INSTKEY to allow fetching the installation_key from cygserver. * fhandler_fifo.cc (fhandler_fifo::fifo_name): Add installation_key to fifo name. * globals.cc: Include cygprops.h. (_RDATA): Move slightly and add comment. (cygwin_props): Define. * mount.cc (mount_info::init): Accommodate the fact that installation_root is now a global variable in DLL common shared memory, rather than a member of cygwin_shared. * pipe.cc (fhandler_pipe::create_selectable): Add installation_key to pipe name. * shared.cc (installation_root): Define here for storage in DLL common shared memory. (installation_key): Ditto. (installation_key_buf): Ditto. (init_installation_root): Convert from shared_info method to ordinary function. Add initializing installation_key. Invalidate installation_key depending of value of disable_key property. Add comment to explain. (get_shared_parent_dir): Add installation_key to directory name. (get_session_parent_dir): Ditto. (shared_info::initialize): Move call to init_installation_root from here... (memory_init): ...to here. Add debug output to print installation root and installation key. Add comment to explain why. * shared_info.h (SHARED_INFO_CB): Recalculate. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Remove definition of installation_root and declaration of init_installation_root. (init_installation_root): Declare. (installation_root): Declare. (installation_key): Declare. * uinfo.cc (pwdgrp::load): Accommodate the fact that installation_root is now a global variable in DLL common shared memory. * include/cygwin/version.h: Bump API minor number. (CYGWIN_INFO_INSTALLATIONS_NAME): Add. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_INSTKEY.
2009-10-31 * sec_helper.cc (security_descriptor::realloc): Call free first ifCorinna Vinschen
current security desriptor has been allocated by GetSecurityInfo.
2009-10-30 * sec_helper.cc (security_descriptor::free): If sd_size is 0, callCorinna Vinschen
LocalFree instead of ::free. * sec_acl.cc: Throughout replace old ACE flag definitions with current definitions as used in MSDN man pages. * security.cc: Ditto. * fhandler.cc (fhandler_base::open): Make sure file has really been just created before fixing file permissions. Add S_JUSTCREATED attribute to set_file_attribute call. * fhandler_disk_file.cc (fhandler_disk_file::mkdir): Always create dir with default security descriptor and fix descriptor afterwards. Add S_JUSTCREATED flag to set_file_attribute call. * fhandler_socket.cc (fhandler_socket::bind): Ditto for AF_LOCAL socket files. * path.cc (symlink_worker): Ditto for symlinks. * security.cc (get_file_sd): Call GetSecurityInfo rather than NtQuerySecurityObject. Explain why. Change error handling accordingly. (alloc_sd): Skip non-inherited, non-standard entries in ACL if S_JUSTCREATED attribute is set. Explain why. Minor format fixes. * security.h (S_JUSTCREATED): New define. (security_descriptor::operator=): New operator.
2009-10-30 * fhandler_random.cc (fhandler_dev_random::lseek): Revert change fromCorinna Vinschen
2009-10-23.
2009-10-30 * smallprint.cc (hex_str): New const string.Corinna Vinschen
(__rn): Drop str and use hex_str instead. (__small_vsprintf): If 'l' modifier has been found, print subsequent multibyte or wide char string using the s, S, or W options in extended hex value layout. * fhandler_disk_file.cc (fhandler_disk_file::readdir): Print WCHAR and resulting multibyte filename in extended hex value layout in debug output.
2009-10-30Honor DESTDIR for winsup/mingw and winsup/w32apiCharles Wilson
2009-10-28 * cygcheck.cc (pretty_id): Drop arguments. Don't change CYGWINCorinna Vinschen
environment variable. (dump_sysinfo): Don't tweak CYGWIN environment variable, just call pretty_id once.
2009-10-28 * pathnames.sgml: Add limitation of case sensitivity with CreateProcess.Corinna Vinschen
2009-10-28 * new-features.sgml (ov-new1.7-posix): Mention UTF-8 as "C" defaultCorinna Vinschen
and the default locale "C.UTF-8". * setup2.sgml (setup-locale-ov): Ditto.
2009-10-26Correct pseudo-reloc size bug wrt error messagesCharles Wilson
2009-10-26Sync pseudo-reloc.c with mingw64Charles Wilson
2009-10-26* faq-setup.xml: Fix clean_setup.pl reference.Christopher Faylor
2009-10-26* faq-setup.xml: Change clean_setup.pl reference.Christopher Faylor
2009-10-26Sync pseudo-reloc.c with mingw64Charles Wilson
2009-10-24 * fhandler.cc (fhandler_base::open): Remove unused variables sa and sd.Corinna Vinschen
2009-10-24 * fhandler.cc (fhandler_base::open): Always create file with defaultCorinna Vinschen
security descriptor and fix descriptor afterwards. Change comment to explain why. * security.cc (alloc_sd): Drop setting the SE_DACL_PROTECTED flag. * wincap.cc: Remove has_dacl_protect throughout. * wincap.h: Ditto.
2009-10-24Sync pseudo-reloc.c with cygwin/lib/Charles Wilson
2009-10-23 * fhandler_random.cc (fhandler_dev_random::lseek): Allow negativeCorinna Vinschen
dummy file positions as on Linux.
2009-10-20 * cygcheck.cc (dump_sysinfo): Update with latest NT 6.1 versions.Corinna Vinschen
2009-10-20 * registry.cc (reg_key::get_int): Add alternative implementationCorinna Vinschen
taking WCHAR strings. (reg_key::set_int): Ditto. (reg_key::get_string): Ditto. (reg_key::set_string): Ditto. * registry.h (struct reg_key): Add prototypes for added methods.
2009-10-20 * smallprint.cc (__small_vsprintf): Simplify UNICODE string handlingCorinna Vinschen
and allow empty strings.
2009-10-20 * fhandler_disk_file.cc (fhander_disk_file::readdir): Handle a statusCorinna Vinschen
code STATUS_NOT_SUPPORTED. Add matching comment.
2009-10-19 * syscalls.cc (internal_setlocale): Only convert $PATH if there is aCorinna Vinschen
$PATH.
2009-10-19 * spawn.cc (av::fixup): Treat non-readable, but executable files asCorinna Vinschen
Cygwin executables.
2009-10-18 * uinfo.cc (uinfo_init): Deimpersonate, don't reimpersonate, ifCorinna Vinschen
not in a setuid condition.
2009-10-15 * cygpath.cc (get_special_folder): Fetch path as WCHAR and convertCorinna Vinschen
using my_wcstombs. (get_user_folder): Remove. (do_sysfolders): Use get_special_folder instead of get_user_folder. Fetch system paths as WCHAR and convert using my_wcstombs.
2009-10-15 * faq-setup.xml (faq.setup.disk-space): Fix URL pointing toCorinna Vinschen
clean_setup.pl script.
2009-10-14Consistently use va_end.Eric Blake
* external.cc (cygwin_internal): Use va_end. * fork.cc (child_copy): Likewise. * libc/bsdlib.cc (warn, warnx, err, errx): Likewise. * pinfo.cc (commune_request): Likewise. * strace.cc (strace::prntf, strace_printf): Likewise.
2009-10-13 * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.Corinna Vinschen
2009-10-13 * include/sys/cygwin.h: Add new cygwin_getinfo_typeCorinna Vinschen
CW_SET_EXTERNAL_TOKEN. Add new enum CW_TOKEN_IMPERSONATION, CW_TOKEN_RESTRICTED. * cygheap.h (cyguser): New flags ext_token_is_restricted, curr_token_is_restricted and setuid_to_restricted. * external.cc (cygwin_internal): Add CW_SET_EXTERNAL_TOKEN. * sec_auth.cc (set_imp_token): New function. (cygwin_set_impersonation_token): Call set_imp_token (). * security.h (set_imp_token): New prototype. * spawn.cc (spawn_guts): Use CreateProcessAsUserW if restricted token was enabled by setuid(). Do not create new window station in this case. * syscalls.cc (seteuid32): Add handling of restricted external tokens. Set HANDLE_FLAG_INHERIT for primary token. (setuid32): Set setuid_to_restricted flag. * uinfo.cc (uinfo_init): Do not reimpersonate if restricted token was enabled by setuid (). Initialize user.*_restricted flags.
2009-10-13Improve clock_gettime and utimensat resolution.Eric Blake
* hires.h (hires_ms): Change initime_us to initime_ns, with 10x more resolution. (hires_ms::nsecs): New prototype. (hires_ms::usecs, hires_ms::msecs, hires_ms::uptime): Adjust. * times.cc (systime_ns): New helper function. (hires_ms::prime): Use it for more resolution. (hires_ms::usecs): Change to... (hires_ms::nsecs): ...with more resolution. (clock_gettime): Use more resolution. (systime): Rewrite in terms of systime_ns. (timespec_to_filetime): Rewrite math to reflect true operation. * fhandler_disk_file.cc (utimens_fs): Use higher resolution.
2009-10-12 * external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNINGCorinna Vinschen
and CW_SETERRNO cases.
2009-10-12 * kill.cc (main): Skip to PID loop on invalid option to handleCorinna Vinschen
negative pids there.
2009-10-12 * fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnkCorinna Vinschen
if the original device had one, too. Add comment. * fhandler_socket.cc (fhandler_socket::fstat): Always return a size of 0 on sockets.
2009-10-09 * pathnames.sgml (pathnames-specialchars): Add control chars to theCorinna Vinschen
list. Explain backslash exception.
2009-10-09 * path.cc (tfx_chars): Convert all ASCII control characters exceptCorinna Vinschen
ASCII NUL as well. Change layout to make the conversions more clear. Add comment.