Commit Graph

  • 2c4cbf8e7b * new-features.xml: (ov-new1.7.29): Fix incomplete XML tagging. Corinna Vinschen 2014-04-04 16:17:13 +0000
  • bf5252bbb7 *** empty log message *** Corinna Vinschen 2014-04-04 14:32:52 +0000
  • b283470e51 * ntea.cc (EA_BUFSIZ): Fix comment. (read_ea): Use tmp_pathbuf for local buffer rather than alloca. Throughout change ZwQueryEaFile to NtQueryEaFile in comments. Corinna Vinschen 2014-04-04 14:26:05 +0000
  • 54b7688e0d * ntea (EA_BUFSIZ): Reduce to 64K. Add comment to explain why. Corinna Vinschen 2014-04-04 13:38:42 +0000
  • aebedcd526 *** empty log message *** Corinna Vinschen 2014-04-01 08:43:34 +0000
  • 47f07c8b3c * new-features.xml: (ov-new1.7.29): Add new section. Christopher Faylor 2014-04-01 00:57:07 +0000
  • c6eaf1f3f7 * DevNotes: Add entry cgf-000025. * exceptions.cc (_cygtls::signal_debugger): Reorganize to avoid contacting the debugger if we have already done so via the exception handler. Eliminate need for goto. Remove an ifdef in favor of just allocating a larger buffer. Christopher Faylor 2014-03-29 21:16:09 +0000
  • 20738749f6 * dcrt0.cc (dll_crt0_0): Install myfault exception handler on x86_64. * exception.h (exception_list): Typedef as void on x86_64. (exception::handler_installed): Remove. (exception::handle_while_being_debugged): Remove. (exception::myfault_handle): Declare for x86_64. (exception::handle): Declare as ordinary exception handler on x86_64 as well. (exception::exception): Drop previous code (again). Install exception::handle as SEH handler. (exception::install_myfault_handler): New x86_64-only method to install exception::myfault_handle as VEH handler. Explain why. (exception::~exception): For x86_64, define frame end label (again). * exceptions.cc (CYG_EXC_CONTINUE_EXECUTION): Drop definition. (CYG_EXC_CONTINUE_SEARCH): Ditto. (exception::myfault_handle): New x86_64-only method, VEH handler to handle myfault exceptions. (exception::handle): Define as ordinary exception handler on x86_64 as well. Use ExceptionContinueExecution and ExceptionContinueSearch throughout instead of deleted Cygwin macros. Don't handle myfault exceptions on x86_64. Corinna Vinschen 2014-03-28 22:31:53 +0000
  • 58cc7a6498 * sec_auth.cc (create_token): Initialize lsa handle to NULL, rather than to INVALID_HANDLE_VALUE. (lsaauth): Ditto. (lsaprivkeyauth): Ditto. * setlsapwd.cc (setlsapwd): Don't initialize lsa handle. Corinna Vinschen 2014-03-28 20:34:04 +0000
  • c16097ed26 * exceptions.cc (_cygtls::signal_debugger): Move memcpy to copy context from incoming siginfo_t to thread_context, too. Corinna Vinschen 2014-03-28 16:56:03 +0000
  • 50b0a28824 * gendef (_sigbe/x86_64): Fix typo in .seh_proc pseudo-op. (setjmp/x86_64): Drop storing ExceptionList pointer in jmp_buf->Frame. Drop comment. Store likely frame in rdx. Jump to __setjmpex. (__setjmpex): New function providing setjmp functionality. Fetch jmp_buf->Frame from rdx, like MSVCRT setjmpex. (__sjfault/x86_64): Store rdx content in jmp_buf->Frame. (__ljfault/x86_64): Don't restore ExceptionList pointer. (longjmp/x86_64): Ditto. Corinna Vinschen 2014-03-27 19:35:55 +0000
  • 31eade549d * libc/machine/arm/acle-compat.h: New file. * libc/machine/arm/arm_asm.h: Use it. Richard Earnshaw 2014-03-27 13:26:39 +0000
  • b7f5fb36f1 2014-03-21 Maciej W. Rozycki <macro@codesourcery.com> Jeff Johnston 2014-03-21 21:27:29 +0000
  • e669b401f7 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 21:17:43 +0000
  • c94fff60f1 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 21:16:40 +0000
  • 7f6278bc08 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 21:15:15 +0000
  • ef073b8f82 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 21:09:46 +0000
  • 23cf8028ec 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 21:02:52 +0000
  • e59026e844 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:58:54 +0000
  • 31b1f3e55f 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:55:57 +0000
  • 8194dcec36 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:34:46 +0000
  • c18decccef 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:28:57 +0000
  • 488d885bf3 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:27:41 +0000
  • d35d103f08 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:26:01 +0000
  • b899f01579 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:24:04 +0000
  • 5ff6903e69 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:22:29 +0000
  • 7f4230bdc8 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:20:53 +0000
  • 9246fbeced 2014-03-21 Sabrini Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:16:14 +0000
  • 5805cb1f8c 2014-03-21 Sabrina Ni <sabrinanitw@gmail.com> Jeff Johnston 2014-03-21 20:09:10 +0000
  • 364f6915f8 * fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Actually pass ioctl argument to _ioctl. Christopher Faylor 2014-03-20 02:23:52 +0000
  • 71f36ed3c2 * fhandler.h (fhandler_dev_dsp): Remove variable names from declarations. (fhandler_dev_dsp::close_audio_in): Make __reg1. (fhandler_dev_dsp::close_audio_out): Make __reg2. * fhandler_dev_dsp.cc (fhandler_dev_dsp::close_audio_in): Make __reg1. (fhandler_dev_dsp::close_audio_out): Make __reg2. (fhandler_dev_dsp::close): Don't abruptly terminate sound just because we are exiting. Christopher Faylor 2014-03-19 20:43:15 +0000
  • 2c1e724ba4 * exception.h (exception::handle_while_being_debugged): Declare. (exception::exception): Install unhandled exception filter. * exceptions.cc (exception::handle_while_being_debugged): New method. Corinna Vinschen 2014-03-19 16:08:21 +0000
  • bdd04d0a62 Fix ChangeLog Corinna Vinschen 2014-03-19 13:06:06 +0000
  • 40e0c34e9c * fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_fork): Actually call _fixup_after_fork rather than looping forever. (fhandler_dev_dsp::fixup_after_exec): Ditto. Corinna Vinschen 2014-03-19 13:05:33 +0000
  • 203cd39dfe * fhandler_dsp.cc (fhandler_dev_dsp::fixup_after_fork): Actually call _fixup_after_fork rather than looping forever. (fhandler_dev_dsp::fixup_after_exec): Ditto. Christopher Faylor 2014-03-18 20:17:03 +0000
  • 8c0389d330 Partially revert patch from 2014-03-04. * exception.h (exception::handler_installed): Declare. (exception::exception): Install vectored exception handler on x86_64. (exception::~exception): Remove for x86_64. * exceptions.cc (exception::handler_installed): Define. Corinna Vinschen 2014-03-18 13:51:18 +0000
  • 4f0b5a097d * sigproc.h (no_thread_exit_protect): New class. * sigproc.cc (thread_exit): Use no_thread_exit_protect to determine if we need to coordinate ThreadExit/ExitProcess. * fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Use no_thread_exit_protect to kludge around waiting for waveOutClose as it waits for a thread that never exits. (fhandler_dev_dsp::Audio_in::stop): Ditto for waveInClose. * fhandler.h (fhandler_dev_dsp::base): New method. (fhandler_dev_dsp::_read): Ditto. (fhandler_dev_dsp::_write): Ditto. (fhandler_dev_dsp::_ioctl): Ditto. (fhandler_dev_dsp::_fixup_after_fork): Ditto. (fhandler_dev_dsp::_fixup_after_exec): Ditto. * fhandler_dsp.cc (fhandler_dev_dsp::read): Call real function via base() pointer. (fhandler_dev_dsp::write): Ditto. (fhandler_dev_dsp::ioctl): Ditto. (fhandler_dev_dsp::fixup_after_fork): Ditto. (fhandler_dev_dsp::fixup_after_exec): Ditto. (fhandler_dev_dsp::_read): Rename by adding an leading underscore. (fhandler_dev_dsp::_write): Ditto. (fhandler_dev_dsp::_ioctl): Ditto. (fhandler_dev_dsp::_fixup_after_fork): Ditto. (fhandler_dev_dsp::_fixup_after_exec): Ditto. Christopher Faylor 2014-03-17 04:41:35 +0000
  • 600afd99ab * Makefile.in (OBJS): Add pwdgrp.o. * client.cc (client_request::handle_request): Handle CYGSERVER_REQUEST_PWDGRP message. * pwdgrp.cc: New file implementing CYGSERVER_REQUEST_PWDGRP. Corinna Vinschen 2014-03-12 17:37:04 +0000
  • 29b7313d22 * cygheap.h (enum cygheap_pwdgrp::cache_t): Remove. (cygheap_pwdgrp::caching): Convert to bool. (cygheap_pwdgrp::pwd_cache): Add cygserver member. (cygheap_pwdgrp::grp_cache): Ditto. (cygheap_pwdgrp::nss_db_caching): Drop. (cygheap_pwdgrp::nss_db_full_caching): Drop. (cygheap_pwdgrp::nss_cygserver_caching): New method. (cygheap_pwdgrp::nss_disable_cygserver_caching): New method. * cygserver.h (client_request::request_code_t): Add CYGSERVER_REQUEST_PWDGRP. * cygserver_pwdgrp.h: New file. * cygtls.h (struct _local_storage): Remove pwbuf and grbuf members. * grp.cc (pwdgrp::prep_tls_grbuf): Drop. (internal_getgrsid): Handle cygserver caching and rearrange to check the caches first. (internal_getgrnam): Ditto. (internal_getgrgid): Ditto. (gr_ent::enumerate_caches): Handle cygserver cache. * passwd.cc (pwdgrp::prep_tls_pwbuf): Drop. (internal_getpwsid): Handle cygserver caching and rearrange to check the caches first. (internal_getpwnam): Ditto. (internal_getpwuid): Ditto. (pw_ent::enumerate_caches): Handle cygserver cache. * pwdgrp.h (pwdgrp::add_account_from_cygserver): New method declaration. (pwdgrp::fetch_account_from_cygserver): New method declaration. (pwdgrp::prep_tls_pwbuf): Drop declaration. (pwdgrp::prep_tls_grbuf): Drop declaration. (pwdgrp::add_user_from_cygserver): New inline methods. (pwdgrp::add_group_from_cygserver): New inline methods. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Regenerate. * uinfo.cc (internal_getlogin): Call internal_getgroups if cygserver caching is not available. (cygheap_pwdgrp::init): Initialize pwd_cache.cygserver and grp_cache.cygserver. Set caching to true. (cygheap_pwdgrp::nss_init_line): Drop db_cache handling entirely. (pwdgrp::add_account_from_windows): Drop no caching handling. (client_request_pwdgrp::client_request_pwdgrp): New method. (pwdgrp::fetch_account_from_cygserver): New method. (pwdgrp::add_account_from_cygserver): New method. Corinna Vinschen 2014-03-12 17:36:56 +0000
  • 681bb2f78a * Throughout, fix format specifiers in debug statements to accommodate x86_64. Corinna Vinschen 2014-03-12 16:00:48 +0000
  • e4f48af0fd * uinfo.cc (pwdgrp::fetch_account_from_windows): Avoid crash on non-domain member machines if an unknown SID comes in. Corinna Vinschen 2014-03-12 15:46:07 +0000
  • 8861a80ee8 * include/cygwin/socket.h (IPV6_JOIN_GROUP): Revert. (IPV6_LEAVE_GROUP): Ditto. Corinna Vinschen 2014-03-12 09:44:33 +0000
  • 16c7ecbb9d Fix ChangeLog entry date. Corinna Vinschen 2014-03-11 15:15:33 +0000
  • 5c66535df9 * fhandler.h (dev_console::b): Redefine as CONSOLE_SCREEN_BUFFER_INFO for use with older OS. * fhandler_console.cc (dev_console::fillin): Ditto for GetConsoleScreenBufferInfo. Christopher Faylor 2014-03-10 18:18:56 +0000
  • ebfec24391 * fhandler_console.cc (dev_console::save_restore): Save entire line of current cursor position. Christopher Faylor 2014-03-10 17:33:17 +0000
  • cda5aac102 * fhandler_console.cc (fhandler_console::save_restore): Save only until last written row and, because of this, don't bother trying to restore the screen buffer size. Set cursor position after refilling buffer. (fhandler_console::write): Use absolute paths when saving/restoring cursor position or suffer odd problems after a saved screen is restored. Christopher Faylor 2014-03-10 03:15:39 +0000
  • dc5694dc88 * fhandler.h (fhandler_console::dwBufferSize): Delete. (fhandler_console::dwCursorPosition): Ditto. (fhandler_console::wAttributes): Ditto. (fhandler_console::b): New field encompassing previously disparate screen buffer info. (fhandler_console::save_bufsize): Rename from savebufsiz (fhandler_console::save_buf): Rename sfrom savebuf. (fhandler_console::save_cursor): New field. (fhandler_console::save_restore): New function. (fhandler_console::con): Rename from dev_state. (fhandler_console::focus_aware): Accommodate name change. * fhandler_console.cc: Use 'b' field of dev_console throughout instead of disparate names. Accommodate dev_state -> con rename. (dev_state:save_restore): New function. Attempt to save the entire screen buffer rather than just the visible part. Clear the buffer when saving, like Linux. (fhandler_console::char_command): Use con.save_restore() for Save/restore screen sequence. Christopher Faylor 2014-03-09 22:49:56 +0000
  • bc7c78b225 * sigproc.cc (_cygtls::remove_wq): Reset thread_ev inside of lock. Set to NULL when done. Christopher Faylor 2014-03-09 19:25:38 +0000
  • e8036b41ab * fhandler_console.cc (fhandler_console::char_command): Properly use calculated value rather than directly using dev_state.args[0]. Christopher Faylor 2014-03-09 18:46:30 +0000
  • 8e513b0217 * dir.cc (opendir): Propagate any errno from build_fh_name. Christopher Faylor 2014-03-09 18:39:14 +0000
  • 0e8dd88459 * pwdgrp.h (pwdgrp::is_passwd): New inline method. (pwdgrp::is_group): New inline method. (add_account_from_windows): Drop group argument from declaration. (fetch_account_from_windows): Ditto. (check_file): Ditto. (add_user_from_windows): Call add_account_from_windows accordingly. (add_group_from_windows): Ditto. * uinfo.cc (pwdgrp::add_account_from_windows): Drop group argument. Use is_group method instead. (pwdgrp::check_file): Ditto. (pwdgrp::fetch_account_from_windows): Ditto. * grp.cc: Accommodate aforementioned changes. * passwd.cc: Ditto. Corinna Vinschen 2014-03-07 20:38:48 +0000
  • 0b3ad39364 * libc/include/stdlib.h (strtold): Define if _HAVE_LONG_DOUBLE is defined. * libc/stdlib/strtold.c (strtold): Ditto. Call strtod on systems with long double == double, _strtold otherwise. Corinna Vinschen 2014-03-07 20:06:54 +0000
  • 29adfd78bd * passwd.cc (pg_ent::enumerate_builtin): Convert pwd_builtins and grp_builtins to array of cygpsid pointers. Replace SID strings with pointers to well known SIDs. * sec_helper.cc (well_known_local_service_sid): Define. (well_known_network_service_sid): Define. (trusted_installer_sid): Define. * security.h (well_known_local_service_sid): Declare. (well_known_network_service_sid): Declare. (trusted_installer_sid): Declare. * uinfo.cc (pwdgrp::fetch_account_from_windows): Throughout set acc_type to SidTypeUnknown if LookupAccountXXX function failed. Create simplified passwd entry for non-user accounts, except for LocalSystem. Add comment. Corinna Vinschen 2014-03-06 18:54:08 +0000
  • 722c840b35 * setpwd.cc (client_request_setpwd::serve): Use RtlSecureZeroMemory to delete password from memory. Corinna Vinschen 2014-03-06 17:02:18 +0000
  • b8b4455f8f * setlsapwd.cc (setlsapwd): Use RtlSecureZeroMemory to delete password from memory. Corinna Vinschen 2014-03-06 17:00:52 +0000
  • 5e6b3cafa2 * ldap.cc (rediscover_thread): Remove. (cyg_ldap::open): Remove code to rediscover DC. It just won't do the right thing. (cyg_ldap::enumerate_ad_accounts): Change to be self-sufficient (no explicit open call required). Enumerate on a DC of the domain itself instead of relying on delegation. Remove ill-advised code trying to generate rootdse from domain name. * passwd.cc (pg_ent::enumerate_ad): Drop explicit call to cyg_ldap::open. Corinna Vinschen 2014-03-05 20:58:33 +0000
  • 512ecab4a8 * include/cygwin/config.h (__TM_GMTOFF): Define. (__TM_ZONE): Define. Corinna Vinschen 2014-03-05 12:50:29 +0000
  • d5b32c8fad * libc/include/time.h (__TM_GMTOFF): Remove Cygwin-specific definition. (__TM_ZONE): Ditto. Corinna Vinschen 2014-03-05 12:49:40 +0000
  • 27afe3a4ab * localtime.cc: Define TM_GMTOFF and TM_ZONE based on __TM_GMTOFF and __TM_ZONE being defined. Throughout, write to these struct tm members only if CYGWIN_VERSION_CHECK_FOR_EXTRA_TM_MEMBERS is true. * libc/strptime.cc: Ditto. * include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_EXTRA_TM_MEMBERS): Define. (CYGWIN_VERSION_API_MINOR): Bump to 272. Corinna Vinschen 2014-03-05 12:45:49 +0000
  • 07be216aab * libc/include/time.h (__TM_GMTOFF): Define on Cygwin. (__TM_ZONE): Ditto. (struct tm): Add __TM_GMTOFF and __TM_ZONE members if they are defined. Corinna Vinschen 2014-03-05 12:43:12 +0000
  • 065c7717b7 2014-02-27 Joey Ye <joey.ye@arm.com> Jeff Johnston 2014-03-04 17:39:26 +0000
  • 4e3c8d9425 * exception.h (exception::handler_installed): Remove. (exception::exception): Remove old code. Manually install SEH handler instead. (exception::~exception): For x86_64, define frame end label. * exceptions.cc (exception::handler_installed): Remove. Corinna Vinschen 2014-03-04 11:56:42 +0000
  • 17ff765184 * libc/include/machine/_default_types.h: Define unsigned type using signed type macros in case unsigned type macros are not available. Corinna Vinschen 2014-03-04 08:05:39 +0000
  • 6dde3146fb * exception.h (exception::exception): Install vectored exception handler rather than vectored continue handler. Corinna Vinschen 2014-03-03 15:38:59 +0000
  • c7b9a091a5 * sec_helper.cc (cygpsid::get_id): Move Samba SID->uid/gid mapping from get_sids_info here. (get_sids_info): Vice versa. * security.cc (convert_samba_sd): New static function to map a Samba security descriptor to a security descriptor with UNIX users and groups converted to Windows SIDs per RFC 2307 mapping. (check_file_access): Call convert_samba_sd on Samba security descriptors. Corinna Vinschen 2014-03-03 12:03:47 +0000
  • f024a32928 * uinfo.cc (pwdgrp::fetch_account_from_windows): Only fetch extended user info if we're creating a passwd entry. Add comment. Corinna Vinschen 2014-02-28 19:10:40 +0000
  • 6cc7c925ce * cygheap.h (cygheap_user::sid): Return reference to cygpsid rather than PSID. (cygheap_user::saved_sid): Ditto. (cygheap_pwdgrp::cache_t): New type. (cygheap_pwdgrp::caching): Convert to cache_t. (cygheap_pwdgrp::nss_db_caching): Change accordingly. (cygheap_pwdgrp::nss_db_full_caching): New inline method. * grp.cc (internal_getgroups): Reinvent. Take cyg_ldap pointer as third parameter and use throughout. (getgroups32): Call internal_getgroups. * pwdgrp.h (internal_getgroups): Declare. * uinfo.cc (internal_getlogin): Partial rewrite to accommodate having no connection to the DC. Give primary group from user token more weight. Generate group entries for all groups in the user token if caching is set to NSS_FULL_CACHING. (cygheap_pwdgrp::init): Initialize caching to NSS_FULL_CACHING. (cygheap_pwdgrp::nss_init_line): Handle "db_cache: full". (pwdgrp::add_account_from_windows): Fix group handling in non-caching mode. (pwdgrp::fetch_account_from_windows): Default primary group for the current user to primary group from user token. Check for primary domain first after LookupAccountSid failed. Corinna Vinschen 2014-02-28 11:37:02 +0000
  • b39fa2c88d * autoload.cc (CheckTokenMembership): Import. * external.cc (cygwin_internal): Call get_uid/get_gid instead of get_id. * grp.cc (internal_getgrsid): Take additional cyg_ldap pointer. Forward to pwdgrp::add_group_from_windows. (internal_getgrnam): Ditto. (internal_getgrgid): Ditto. (gr_ent::enumerate_local): Drop ugid_caching bool from call to pwdgrp::fetch_account_from_windows. (getgroups32): Rename from internal_getgroups and drop getgroups32 stub. Drop srchsid parameter and code handling it. Add local cyg_ldap instance and forward to internal_getgrXXX. (getgroups): Call getgroups32. (get_groups): Add local cyg_ldap instance and forward to internal_getgrXXX. (getgrouplist): Ditto. (setgroups32): Ditto. * ldap.cc (cyg_ldap::open): Don't call close. Return true if connection is already open. (cyg_ldap::remap_uid): Forward this to internal_getpwsid. (cyg_ldap::remap_gid): Forward this to internal_getgrsid. * passwd.cc (internal_getpwsid): Take additional cyg_ldap pointer. Forward to pwdgrp::add_user_from_windows. (internal_getpwnam): Ditto. (internal_getpwuid): Ditto. (pg_ent::enumerate_builtin): Drop ugid_caching bool from call to pwdgrp::fetch_account_from_windows. (pg_ent::enumerate_sam): Ditto. (pg_ent::enumerate_ad): Ditto. Forward local cldap instead. * pwdgrp.h (internal_getpwsid): Align declaration to above change. (internal_getpwnam): Ditto. (internal_getpwuid): Ditto. (internal_getgrsid): Ditto. (internal_getgrgid): Ditto. (internal_getgrnam): Ditto. (internal_getgroups): Drop declaration. (pwdgrp::add_account_from_windows): Align declaration to below change. (pwdgrp::add_user_from_windows): Ditto. (pwdgrp::add_group_from_windows): Ditto. * sec_acl.cc (setacl): Add local cyg_ldap instance and forward to internal_getpwuid and internal_getgrgid. (getacl): Add local cyg_ldap instance and forward to cygpsid::get_id. (aclfromtext32): Add local cyg_ldap instance and forward to internal_getpwnam and internal_getgrnam. * sec_helper.cc (cygpsid::get_id): Take additional cyg_ldap pointer. Forward to internal_getgrsid and internal_getpwsid. (get_sids_info): Drop ldap_open. Forward local cldap to internal_getpwsid and internal_getgrXXX. Call CheckTokenMembership rather than internal_getgroups. * security.h (cygpsid::get_id): Add cyg_ldap pointer, drop default parameter. (cygpsid::get_uid): Add cyg_ldap pointer. Call get_id accordingly. (cygpsid::get_gid): Ditto. * uinfo.cc (internal_getlogin): Add local cyg_ldap instance and forward to internal_getpwXXX and internal_getgrXXX calls. (pwdgrp::add_account_from_windows): Take additional cyg_ldap pointer. Forward to pwdgrp::fetch_account_from_windows. (fetch_posix_offset): Drop ldap_open argument and handling. Get cyg_ldap instance as pointer. (pwdgrp::fetch_account_from_windows): Take additional cyg_ldap pointer. Use it if it's not NULL, local instance otherwise. Drop ldap_open. Drop fetching extended group arguments from AD for speed. Corinna Vinschen 2014-02-27 12:57:27 +0000
  • 8033fd9a65 * path.cc (find_fast_cwd_pointer): Fix preceeding comment. Corinna Vinschen 2014-02-27 10:25:03 +0000
  • da61bd9622 Fix typo Corinna Vinschen 2014-02-26 13:16:41 +0000
  • 8a1a15ffd2 * fhandler.h (fhandler_console::scroll_buffer_screen): New function. * fhandler_console.cc (fhandler_console::scroll_buffer_screen): New function. (fhandler_console::char_command): Use scroll_buffer_screen as appropriate. (dev_console::scroll_buffer): Remove if 0'ed block. Christopher Faylor 2014-02-26 03:58:37 +0000
  • 16a976cff4 * mkgroup.c (domlist_t): Drop id_offset. (get_dcname): Remove. (current_group): Remove. (enum_unix_groups): Simplify. Change space to underscore in domain name. (enum_local_groups): Simplify to accommodate the fact that it's only called for foreign machines. (enum_groups): Ditto. (print_special_by_sid): Remove. (print_special_by_name): Remove. (usage): Align to new code. (fetch_primary_domain): Remove. (main): Use cygwin_internal CW_SETENT, CW_GETENT and CW_ENDENT method. Call enum_local_groups, enum_groups, and enum_unix_groups only for foreign machines. * mkpasswd.c (get_dcname): Remove. (current_user): Remove. (enum_unix_users): Simplify. Change space to underscore in domain name. (enum_users): Simplify to accommodate the fact that it's only called for foreign machines. (print_special_by_sid): Remove. (usage): Align to new code. (longopts): Add -b/--no-builtin option. (opts): Add -b option. (print_special_by_name): Remove. (enum_std_accounts): Remove. (fetch_primary_domain): Remove. (main): Use cygwin_internal CW_SETENT, CW_GETENT and CW_ENDENT method. Call enum_users and enum_unix_users only for foreign machines. * utils.xml (mkgroup): Align documentation to new usage. (mkpasswd): Ditto. Corinna Vinschen 2014-02-24 10:51:42 +0000
  • bdcad00bdf * minidumper.cc (minidump): Fix -t option argument handling. Jon TURNEY 2014-02-23 11:34:31 +0000
  • 7cb7f645d5 * dev_console::scroll_buffer): Reinstate clipping region. Christopher Faylor 2014-02-23 03:42:02 +0000
  • f1d9e96c44 * fhandler.h (dev_console::is_fullscreen): Delete. (dev_console::scroll_window): Return bool indicating success. (dev_console::scroll_screen): New function. (dev_console::clear_screen): New function. (fhandler_console::clear_screen): Make __reg3. (fhandler_console::cursor_set): Ditto. (fhandler_console::cursor_get): Ditto. (fhandler_console::cursor_rel): Ditto. * fhandler_console.cc (dev_console::scroll_buffer): Adapt from fhandler_console. (fhandler_console::scroll_buffer): Use dev_console function. (dev_console::is_fullscreen): Delete. (dev_console::scroll_window): Return true if we cleared the screen. Shrink/grow buffer first before scrolling to ensure that there is sufficient space after scrolling. (fhandler_console::clear_screen): Make reg3, use dev_console function. (dev_console::clear_screen): New function adapted from fhandler_console. (fhandler_console::cursor_set): Make __reg3. (fhandler_console::cursor_rel): Ditto. (fhandler_console::cursor_get): Ditto. (fhandler_console::write): Fix "reverse index". Christopher Faylor 2014-02-23 03:38:52 +0000
  • b211f4c17e * external.cc (cygwin_internal): Add cases for CW_GETNSSSEP, CW_GETPWSID and CW_GETGRSID. * grp.cc (internal_getgrsid_from_db): New function. * passwd.cc (internal_getpwsid_from_db): New function. (pg_ent::setent): Add special case for call from mkpasswd/mkgroup. * pwdgrp.h (internal_getpwsid_from_db): Declare. (internal_getgrsid_from_db): Declare. (enum nss_enum_t): Move to include/sys/cygwin.h. (class pg_ent): Add comment. * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix typo in comment. Change "UNIX" to "Unix" in domain name. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GETNSSSEP, CW_GETPWSID and CW_GETGRSID. (enum nss_enum_t): Define here. Corinna Vinschen 2014-02-22 19:38:12 +0000
  • 98cc373860 * pwdgrp.h (pwdgrp::fetch_account_from_windows): Add bool parameter to declaration, set to true by default. * uinfo.cc (pwdgrp::fetch_account_from_windows): Add bool parameter "ugid_caching". Only add account to ugid_cache if set to true. * grp.cc (gr_ent::enumerate_local): Call fetch_account_from_windows with ugid_caching parameter set to false. * passwd.cc (pg_ent::enumerate_builtin): Ditto. (pg_ent::enumerate_sam): Ditto. (pg_ent::enumerate_ad): Ditto. Corinna Vinschen 2014-02-21 10:01:00 +0000
  • 6480b2ae76 * libm/complex/complex.tex: Fix wrong syntax in documentation. * libm/math/math.tex: Ditto. Corinna Vinschen 2014-02-20 18:59:10 +0000
  • 1e3a150969 * grp.cc (getgrouplist): Fix previous fix so ret is only set to ngroups if ngroups isn't too small. Corinna Vinschen 2014-02-20 15:46:48 +0000
  • 2dc219640d *** empty log message *** Corinna Vinschen 2014-02-20 13:57:39 +0000
  • 7f57a4ea14 * grp.cc (get_groups): Don't add gid to list if it's ILLEGAL_GID. (getgrouplist): Return number of groups, just like glibc. Corinna Vinschen 2014-02-20 13:55:57 +0000
  • 23c0f21594 * libc/stdio/open_memstream.c (internal_open_memstream_r): Initialize c->pos to 0. Corinna Vinschen 2014-02-20 13:32:34 +0000
  • 50db0deb25 * passwd.cc (pg_ent::setent): Initialize cygheap domain info. * sec_auth.cc (get_logon_server): Ditto. Corinna Vinschen 2014-02-19 18:29:52 +0000
  • dfd2ffdcc1 * Makefile.in: Ignore errors on doc install. Christopher Faylor 2014-02-18 19:58:39 +0000
  • 036f56cf32 * external.cc (cygwin_internal): Handle new CW_SETENT, CW_GETENT and CW_ENDENT info types. * grp.cc (setgrent_filtered): New function, called from cygwin_internal. (getgrent_filtered): Ditto. (endgrent_filtered): Ditto. * passwd.cc (pg_ent::setent): Set state explicitely to from_cache. (pg_ent::getent): Handle the fact that a DC has no SAM and enumerating local accounts is equivalent to enumerating domain accounts. (setpwent_filtered): New function, called from cygwin_internal. (getpwent_filtered): Ditto. (endpwent_filtered): Ditto. * pwdgrp.h (setpwent_filtered): Declare. (getgrent_filtered): Ditto. (endgrent_filtered): Ditto. (setpwent_filtered): Ditto. (getpwent_filtered): Ditto. (endpwent_filtered): Ditto. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_SETENT, CW_GETENT, and CW_ENDENT. Corinna Vinschen 2014-02-18 19:39:48 +0000
  • 68135b2be2 *** empty log message *** Christopher Faylor 2014-02-18 19:02:58 +0000
  • 4413149388 * setlsapwd.cc (setlsapwd): Fix conditional expression after breaking it on 2014-01-23. Corinna Vinschen 2014-02-18 14:53:38 +0000
  • a8cf6887a2 * autoload.cc (ldap_abandon): Import. (ldap_result): Import. (ldap_searchW): Import. (NetGroupEnum): Import. (NetLocalGroupEnum): Import. (NetUserEnum): Import. * cygheap.h (class cygheap_pwdgrp): Add members enums and enum_tdoms. (cygheap_pwdgrp::nss_db_enums): New inline method. (cygheap_pwdgrp::nss_db_enum_tdoms): Ditto. * cygtls.h (struct _local_storage): Drop unused members pw_pos and grp_pos. * grp.cc (grent): New static variable of class gr_ent. (gr_ent::enumerate_caches): New method. (gr_ent::enumerate_local): New method. (gr_ent::getgrent): New method. (setgrent): Call gr_ent method. (getgrent32): Ditto. (endgrent): Ditto. * ldap.cc (sid_attr): Rename from nfs_attr. (cyg_ldap::close): Abandon still running asynchronous search. (cyg_ldap::fetch_ad_account): Reduce filter buffer size. (cyg_ldap::enumerate_ad_accounts): New method. (cyg_ldap::next_account): New method. (cyg_ldap::fetch_posix_offset_for_domain): Reduce filter buffer size. (cyg_ldap::fetch_unix_sid_from_ad): Ditto. Fix return value in case no value has been read. (cyg_ldap::fetch_unix_name_from_rfc2307): Reduce filter buffer size. * ldap.h (class cyg_ldap): Add msg_id member. (cyg_ldap::enumerate_ad_accounts): Declare. (cyg_ldap::next_account): Declare: * passwd.cc (pwent): New static variable of class pw_ent. (pg_ent::clear_cache): New method. (pg_ent::setent): New method. (pg_ent::getent): New method. (pg_ent::endent): New method. (pg_ent::enumerate_file): New method. (pg_ent::enumerate_builtin): New method. (pg_ent::enumerate_sam): New method. (pg_ent::enumerate_ad): New method. (pw_ent::enumerate_caches): New method. (pw_ent::enumerate_local): New method. (pw_ent::getpwent): New method. (setpwent): Call pw_ent method. (getpwent): Ditto. (endpwent): Ditto. * pwdgrp.h (class pwdgrp): Define pg_ent, pw_ent and gr_ent as friend classes. (pwdgrp::add_account_post_fetch): Declare with extra bool parameter. (pwdgrp::file_attr): New inline method. (enum nss_enum_t): Define. (class pg_ent): Define. (class pw_ent): Define. (class gr_ent): Define. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Ditto. * uinfo.cc (cygheap_pwdgrp::init): Initialize enums and enum_tdoms. (cygheap_pwdgrp::nss_init_line): Fix typo in preceeding comment. Handle new "db_enum" keyword. (pwdgrp::add_account_post_fetch): Take additional `bool lock' parameter and acquire pglock before adding element to array if lock is true. (pwdgrp::add_account_from_file): Call add_account_post_fetch with lock set to true. (pwdgrp::add_account_from_windows): Ditto in case of caching. (pwdgrp::fetch_account_from_windows): Handle builtin aliases only known to the domain controller. Only call NetLocalGroupGetInfo for aliases. Corinna Vinschen 2014-02-17 15:36:33 +0000
  • 1e705e2932 * miscfuncs.h (NT_readline::close): New function to close handle. (NT_readline::~NT_readline): Call close. * sec_auth.cc (verify_token): Use constructor to initialize tok_usersid. * security.h (cygsid::cygsid): Add copy constructor taking cygsid as source. Corinna Vinschen 2014-02-16 16:02:18 +0000
  • c18cbc8e6d * dcrt0.cc (dll_crt0_1): Call initial_setlocale before fetching current user information. Corinna Vinschen 2014-02-16 15:42:40 +0000
  • df2764ef93 * DevNotes: Add entry cgf-000024. * fhandler.h (dev_console::state): Remove trailing underscore. (dev_console::args): Ditto. (dev_console::nargs): Ditto. (dev_console::info): Eliminate subclass. (dev_console::dwEnd): New field. (dev_console::scroll_window): New function. (dev_console::is_fullscreen): Ditto. (dev_console::fillin): Rename from fillin_info. (fhandler_console::scroll_buffer): Rename from scroll_screen. * fhandler_console.cc: Throughout s/dev_state\.info/dev_state/g. Accommodate other name changes. (dev_console::fillin): Accommodate rename. Notice max x/y written to. Forgo memset if GetConsoleScreenBufferInfo fails. (fhandler_console::scroll_buffer): Accommodate rename. Don't treat y coordinate of zero as top of screen. (dev_console::is_fullscreen): New function. (dev_console::scroll_window): Ditto. (fhandler_console::clear_screen): Just scroll the screen when clearing the screen in a state where the screen buffer is bigger than the screen. (fhandler_console::char_command): Try harder to get 'S' and 'T' working in the presence of a screen buffer. Use temporary 'n' variable rather than dev_state.args[0]. Use GNU ?: shortcut method. Christopher Faylor 2014-02-16 01:48:25 +0000
  • f235534904 * pinfo.cc (winpids::add): Always copy pinfo structure when winpid. Fill out dwProcessId explicitly to handle exec from a windows process. (winpids::enum_processes): Reorganize to iterate over known cygwin pids when !winpid. Simplify logic. Don't do duplicate detection for winpid. Christopher Faylor 2014-02-15 04:17:27 +0000
  • 2889130e0b * uinfo.cc (pwdgrp::fetch_account_from_windows): Default to /bin/bash as login shell. Corinna Vinschen 2014-02-14 14:25:19 +0000
  • 1eedd4c98c Fix typo Corinna Vinschen 2014-02-13 14:31:03 +0000
  • 85b8256d2e * ldap.cc (cyg_ldap::fetch_posix_offset_for_domain): If domain name has no dot, it's a Netbios name. Change the search filter expression accordingly and filter by flatName. Add comment. * uinfo.cc (cygheap_domain_info::init): Gracefully handle NULL DnsDomainName and DomainSid members in DS_DOMAIN_TRUSTSW strutures. Add comment. Fix comment preceeding fetching the mapping server from registry. (pwdgrp::fetch_account_from_file): Convert str to a local array. (fetch_posix_offset): New static function. (pwdgrp::fetch_account_from_windows): Add debug output in case LookupAccountSidW fails. Simplify code by calling fetch_posix_offset where appropriate. If LookupAccountSidW fails, check if the SID is one of the known trusted domains. If so, create a more informative account entry. Corinna Vinschen 2014-02-13 14:04:03 +0000
  • 5f51881a6d * uinfo.cc (cygheap_pwdgrp::nss_init_line): Explicitely ignore a colon as separator char. Corinna Vinschen 2014-02-12 13:01:10 +0000
  • 6a7a80d83c 2014-02-11 Joey Ye <joey.ye@arm.com> Jeff Johnston 2014-02-11 19:55:22 +0000
  • 35dcecc6db 2014-02-11 Joey Ye <joey.ye@arm.com> Jeff Johnston 2014-02-11 19:54:30 +0000
  • 45f9ca0c9d * winsup.h: Turn off previous workaround but leave a comment. Christopher Faylor 2014-02-11 18:41:36 +0000
  • f8efc42f66 * ldap.cc (rediscover_thread): Give argument a useful name. * miscfuncs.cc (NT_readline::init): It's a really bad idea trying to print a pointer to a PUNICODE_STRING as PUNICODE_STRING. Fix it. * uinfo.cc (cygheap_domain_info::init): Print status codes as hex values in debug output. Corinna Vinschen 2014-02-11 17:45:09 +0000