efaf85c5e6* client.cc: Throughout, fix debug output of signed byte count value.
Corinna Vinschen
2014-06-23 09:17:24 +0000
852ed641ee* ldap.cc (CYG_LDAP_TIMEOUT): Set to 5 secs. (CYG_LDAP_ENUM_TIMEOUT): New timeout value for enumeration only. Set to 60 secs. (CYG_LDAP_ENUM_PAGESIZE): Define as number of entries per single search page. Set to 100. Use throughout. (def_tv): Rename from tv. Use throughout. (enum_tv): New variable. Use in call to ldap_get_next_page_s.
Corinna Vinschen
2014-06-23 09:09:54 +0000
b1c17593f8* ldap.cc (CYG_LDAP_TIMEOUT): Define as timeout value. Set to 30 secs for now. Use throughout. * uinfo.cc (colon_to_semicolon): New local function. (pwdgrp::fetch_account_from_windows): Convert all colons in AD gecos entry to commas.
Corinna Vinschen
2014-06-18 17:41:52 +0000
59c45c4445* faq-programming.xml: Add gettext-devel to list of packages needed to build Cygwin.
Christopher Faylor
2014-06-17 14:49:06 +0000
6681d11fd3* grp.cc (getgrouplist): Fix setting ngroups to make sure to return the right value.
Corinna Vinschen
2014-06-16 09:12:29 +0000
84600df21dmerge from gcc
DJ Delorie
2014-06-11 17:56:17 +0000
deda48a9fb* libc/machine/aarch64/strchrnul.S: New file. * libc/machine/aarch64/strchrnul-stub.c: New file. * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated.
Richard Earnshaw
2014-06-11 10:42:54 +0000
5efd066df2* libc/machine/aarch64/strchr.S: New file * libc/machine/aarch64/strchr-stub.c: New file * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated.
Richard Earnshaw
2014-06-10 14:04:31 +0000
d043b4c527* configure.host (default_newlib_nano_malloc): New. (msp430): Set it. * configure.in (newlib_nano_malloc): Leave unset if not set by the user. * configure: Regenerate. * libc/configure.in (NEWLIB_NANO_MALLOC): Set after running configure.host. (newlib_nano_malloc): Leave unset if not set by the user. * libc/configure: Regenerate.
DJ Delorie
2014-06-10 03:09:35 +0000
4d79de90e1* timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf, printing more details about odd failure condition.
Christopher Faylor
2014-06-05 19:50:24 +0000
f9f90410fd* autoload.cc (ldap_memfreeW): Remove. (ldap_msgfree): Import. * ldap.cc: Throughout, use ldap_msgfree to free LDAPMessage memory, rather than ldap_memfreeW. (cyg_ldap::next_account): Immediately abandon search when quiting from search.
Corinna Vinschen
2014-05-23 10:29:11 +0000
449429c16a* autoload.cc (ldap_abandon): Remove. (ldap_count_entries): Import. (ldap_get_next_page_s): Import. (ldap_result): Remove. (ldap_searchW): Remove. (ldap_search_abandon_page): Import. (ldap_search_init_pageW): Import. * ldap.cc (cyg_ldap::close): Use ldap_search_abandon_page to abandon search. Reset srch_id, srch_msg and srch_entry. (cyg_ldap::enumerate_ad_accounts): Use paged search to overcome server side search result set restriction. (cyg_ldap::next_account): Ditto. * ldap.h (class cyg_ldap): Add members srch_id, srch_msg and srch_entry. Remove member msg_id. (cyg_ldap::cyg_ldap): Change initialization accordingly.
Corinna Vinschen
2014-05-22 20:07:25 +0000
de13ccea73* sec_auth.cc (get_server_groups): Call get_user_local_groups only if get_logon_server succeeded.
Corinna Vinschen
2014-05-22 16:40:13 +0000
ee9b1ceb2dmerge from gcc
DJ Delorie
2014-05-22 15:01:34 +0000
03e3cf9846* ldap.cc (cyg_ldap::fetch_ad_account): Take additional domain string parameter. Convert into likely rootDSE string if not NULL, and use in subsequent call to ldap_search_stW. Add comment to explain that this is not the exactly correct solution. * ldap.h (cyg_ldap::fetch_ad_account): Change prototype accordingly. * uinfo.cc (pwdgrp::fetch_account_from_windows): Always use loc_ldap in call to fetch_posix_offset to make sure we're fetchoinmg the posix offsets from *our* domain controller. Only set domain variable to non-NULL if the account is from a trusted domain. Use domain in call to cyg_ldap::fetch_ad_account.
Corinna Vinschen
2014-05-22 14:50:24 +0000
9c9f0ee802* fhandler_process.cc (get_mem_values): Rearrange code slightly to avoid resource leakage (CID 59973). (format_process_stat): Drop temporary variable wcmd and avoid string copy without length check (CID 60050). (format_process_status): Ditto (CID 60051).
Corinna Vinschen
2014-05-20 11:20:02 +0000
3ccae7b681* fhandler_proc.cc (format_proc_swaps): Use tmp_pathbuf for filename, rather than allocating and forgetting to free (CID 59982).
Corinna Vinschen
2014-05-20 11:00:37 +0000
51a895f86d* scandir.cc (scandir): Assume namelist is always valid, per POSIX. (CID 60021). * sec_auth.cc (cygwin_logon_user): Securely erase password copy. (lsaprivkeyauth): Avoid trying to dereference data if no key is stored in the registry (CID 60122). Securely erase passwords after usage.
Corinna Vinschen
2014-05-20 10:21:34 +0000
d7dd11b8f3* pseudo-reloc.cc (__report_error): Raise size of module name buffer to PATH_MAX. Fix length in call to GetModuleFileNameW (CID 59947).
Corinna Vinschen
2014-05-19 16:56:31 +0000
e0f53cfe6a* net.cc (call_gaa): Fix setting pa_ret pointer in case of an error from GetAdaptersAddresses (CID 60218). (get_ifs): Add missing braces in AF_INET6 case which broke netmask computation. Break out of loop if prefix gets <= 0 (CID 59939).
Corinna Vinschen
2014-05-19 15:57:22 +0000
111727904f* bsd_mutex.cc (msleep_sync_array::~msleep_sync_array): New destructor to make Coverity happy (CID 59838).
Corinna Vinschen
2014-05-19 09:52:43 +0000
ca6183c344* bsd_helper.cc (ipcexit_creat_hookthread): Delete shs to make Coverity happy (CID 59993). * transport_pipes.cc (transport_layer_pipes::listen): Make listen_pipe and connect_pipe statics to make Coverity happy (CID 60010/60011).
Corinna Vinschen
2014-05-19 09:49:15 +0000
eec106c4ec* external.cc (cygwin_internal): Use local name buffer instead of allocated one in CW_CYGNAME_FROM_WINNAME.
Corinna Vinschen
2014-05-16 12:13:57 +0000
e9eef8ec14* libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.
Corinna Vinschen
2014-05-15 13:14:25 +0000
076a61f0d9* external.cc (cygwin_internal): Implement CW_CYGNAME_FROM_WINNAME. Add lengthy comment to explain what we do and why. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CYGNAME_FROM_WINNAME.
Corinna Vinschen
2014-05-15 11:16:28 +0000
86d2e3d0e7merge from gcc
DJ Delorie
2014-05-14 17:23:22 +0000
a265e7269f* libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when double options is not __RL78_64BIT_DOUBLES__.
Corinna Vinschen
2014-05-14 11:33:24 +0000
6506454fb3* sec_auth.cc (get_server_groups): Call get_logon_server only for non-builtin accounts. * uinfo.cc (pwdgrp::fetch_account_from_windows): Check incoming account name for validity in terms of the current name prefixing rules and refuse invalid names.
Corinna Vinschen
2014-05-14 11:27:47 +0000
d4ff931bf8* fhandler_socket.cc (fhandler_socket::ioctl): Handle the different ideas of u_long between Winsock and Cygwin applications on x86_64. Add long comment.
Corinna Vinschen
2014-05-13 16:07:50 +0000
2915feb81e* minidumper.cc (filter_minidump_type): New function. (minidump): Change default dump type from MiniDumpNormal to something with more useful information without getting too big. Use filter_minidump_type() to filter out unsupported dump types.
Jon TURNEY
2014-05-13 10:26:26 +0000
8f8e7757cf* Makefile.in (minidumper.exe): Link directly with dbghelp. * minidumper.cc (minidump): Ditto.
Jon TURNEY
2014-05-13 10:24:16 +0000
3ad50ff74aclarify checkin comment
Christopher Faylor
2014-05-10 20:17:54 +0000
fb1565af68* signal.cc (sigprocmask): Fix strace output to include "how". * fhandler_console.cc (dev_console::save_restore): Only current dwEnd line rather than the one after that.
Christopher Faylor
2014-05-09 14:28:48 +0000
7bc7b551f5* libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or __XSI_VISIBLE or if __POSIX_VISIBLE >= 200112.
Corinna Vinschen
2014-05-09 14:25:32 +0000
783e4d51e2* libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only. (renameat): Drop explicit __CYGWIN__ dependency.
Corinna Vinschen
2014-05-09 08:42:39 +0000
8764af1eb1* uinfo.cc (cygheap_user::init): Fix formatting in debug output. (struct cyg_USER_INFO_24): Define temporarily. Explain why. (pwdgrp::fetch_account_from_windows): Handle sane primary group setting for Microsoft Accounts. Explain why. * wincap.h (wincaps::has_microsoft_accounts): New element. * wincap.cc: Implement above element throughout.
Corinna Vinschen
2014-05-08 19:33:07 +0000
03039d4fc2* passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing the buffer len. Add comment. * uinfo.cc (internal_getlogin): Fix typo in comment.
Corinna Vinschen
2014-05-07 14:49:54 +0000
951bc34df4* uinfo.cc (pwdgrp::fetch_account_from_windows): Tweak SID<->uid conversion to cover S-1-5-113, S-1-5-114, and S-1-5-1000 groups.
Corinna Vinschen
2014-05-07 12:07:12 +0000
20de26ebf9* grp.cc (pwdgrp::parse_group): Set grp.len. Drop generating any gr_mem entries. (getgrgid_r): Don't try to copy gr_mem entries. Always set gr_mem to an empty list. (getgrnam_r): Ditto. (app_gr): New static struct to store group data propagated to the calling application via getgrgid/getgrnam. (getgr_cp): Fill app_gr and return pointer to app_gr.g. (getgrgid32): Call getgr_cp. (getgrnam32): Ditto. * passwd.cc (pwdgrp::parse_passwd): Set res.len. (app_pw): New static struct to store passwd data propagated to the calling application via getpwuid/getpwnam. (getpw_cp): Fill app_pw and return pointer to app_pw.p. (getpwuid32): Cal getpw_cp. (getpwnam): Ditto. * pwdgrp.h (struct pg_pwd): Add len member. (struct pg_grp): Ditto.
Corinna Vinschen
2014-05-07 11:00:00 +0000
fc3a3524b2* security.h (MAX_SUBAUTH_CNT): Drop. Use SID_MAX_SUB_AUTHORITIES instead throughout. (MAX_SID_LEN): Drop. Use SECURITY_MAX_SID_SIZE instead throughout.
Corinna Vinschen
2014-05-06 12:28:33 +0000
439b7db785* grp.cc (internal_getgroups): Drop unused cygsid variable. * sec_helper.cc (cygpsid::pstring): Use sid_sub_auth_count macro. (cygsid::get_sid): Use MAX_SUBAUTH_CNT rather than wrong constant 8. Don't call memcpy to copy subauthorities into SID, use assignment. (cygsid::getfromstr): Use MAX_SUBAUTH_CNT rather than wrong constant 8. * security.h (MAX_SUBAUTH_CNT): New definition. Set to 11 to cover Microsoft Accounts. (MAX_SID_LEN): Define in terms of SID member sizes and MAX_SUBAUTH_CNT. (DBGSID): Use MAX_SUBAUTH_CNT to define size of SubAuthority array. * uinfo.cc (pwdgrp::fetch_account_from_windows): Handle Micosoft Accounts. Handle them as well known group. Compare domain names case-insensitive. * winlean.h (PIPE_REJECT_REMOTE_CLIENTS): Drop temporary definition since Mingw64 catched up. (DNLEN): Redefine as 16. Explain why.
Corinna Vinschen
2014-05-06 12:02:48 +0000
67797a9560* net.cc (cygwin_getsockopt): Rearrange code slightly and handle TCP_NODELAY just like SO_KEEPALIVE and SO_DONTROUTE.
Corinna Vinschen
2014-05-05 15:18:17 +0000
7e9b678464* libc/include/stdio.h: Declare various C99 printf/scanf functions for C++11, too.
Corinna Vinschen
2014-05-05 12:53:47 +0000
d8b41bc3d0* spawn.cc (av::setup): Eat trailing whitespace on #! script.
Christopher Faylor
2014-05-03 19:58:20 +0000
b0aa67c40e* fhandler_dsp.cc (ioctl): Use _ioctl for recursive call.
Christopher Faylor
2014-05-02 15:14:17 +0000
179e25f0df* msp430/Makefile.in (NOSYS_OBJS): Add unlink.o. (SCRIPTS): Remove msp430F5438A-s.ld and msp430F5438A-s.ld. * unlink.c: New file.
Nick Clifton
2014-04-30 11:30:14 +0000
6e06243942* DevNotes: Add entry cgf-000026. * fhandler.h (fhandler_console::save_top): Save top of screen coordinates. * fhandler_console.cc (dev::save_restore): Record top of screen coordinates. Clear entire buffer when restoring saved buffer and try to position the cursor on the save relative place on the screen.
Christopher Faylor
2014-04-26 17:38:22 +0000
e1c519b41f* syscalls.cc (NT_TRANSACTIONAL_ERROR): Cover all status codes up to STATUS_TRANSACTION_NOT_ENLISTED.
Corinna Vinschen
2014-04-25 14:43:13 +0000
8e22028339* fhandler_socket.cc: On x86_64, define u_long as __ms_u_long before including the windows headers. Explain why. (get_inet_addr): Convert ANY address to LOOPBACK address. Explain why. (fhandler_socket::evaluate_events): Forcibly set SO_ERROR socket option in case a connection attempt failed. Explain why. (fhandler_socket::ioctl): Drop x86_64 re-definition of u_long here. * fhandler_procnet.cc: On x86_64, define u_long as __ms_u_long before including the windows headers. Explain why. * net.cc: Ditto.
Corinna Vinschen
2014-04-24 13:44:23 +0000
742e729664* libc/machine/arm/strcmp-arm-tiny.S: New file. * libc/machine/arm/strcmp-armv4.S: New file. * libc/machine/arm/strcmp-armv4t.S: New file. * libc/machine/arm/strcmp-armv6.S: New file. * libc/machine/arm/strcmp-armv7.S: New file. * libc/machine/arm/strcmp-armv7m.S: New file. * libc/machine/arm/strcmp.S: Replace with wrapper for various implementations. * libc/machine/arm/Makefile.am (strcmp.o, strcmp.obj): Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
Richard Earnshaw
2014-04-22 12:16:22 +0000
93a1517f68* ldap.cc (user_attr): Remove "uid" attribute. * ldap.h (LDAP_USER_NAME_ATTR): Remove. Change other attribute index values as required. (cyg_ldap::get_user_name): Remove inline function. * uinfo.cc (pwdgrp::fetch_account_from_windows): Remove code to handle Cygwin username different from Windows username. (pwdgrp::add_account_from_cygserver): Remove unnecessary cast.
Corinna Vinschen
2014-04-22 10:36:35 +0000
638f0ebf90* minidumper.cc (minidump): Fix copy and paste error in checking result of OpenProcess().
Jon TURNEY
2014-04-21 12:02:59 +0000
7ae3e6b3d4* cygtls.h (TP_NUM_C_BUFS): Raise to 50 to allow SYMLOOP_MAX recursions path_conv <-> normalize_posix_path, plus a bit of buffer. (TP_NUM_W_BUFS): Ditto. (class san): Change type of _c_cnt and _w_cnt to unsigned. * path.cc (normalize_posix_path): Guard recursion into path_conv against tmp_pathbuf overflow. Generate normalized path in call to path_conv. If the path is valid, replace dst with the normalized_path from path_conv call. Add comment to explain why we're doing this. * tls_pbuf.cc (tls_pathbuf::destroy): Only free buffers until the first buffer pointer is NULL. (tmp_pathbuf::c_get): Simplify error message. (tmp_pathbuf::w_get): Ditto. * tls_pbuf.h (class tmp_pathbuf): Change type of c_buf_old and w_buf_old to unsigned. (tmp_pathbuf::check_usage): New inline method to check if we have enough tmp_pathbuf buffers left to call a function using tmp_pathbuf buffers. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Regenerate.
Corinna Vinschen
2014-04-18 14:29:49 +0000
d98d7f3973* pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message length to account for the trailing NUL.
Corinna Vinschen
2014-04-16 09:26:41 +0000
0f05e4b24f* libc/machine/rl78/setjmp.S: Add RL78/G10 support.
DJ Delorie
2014-04-09 21:35:43 +0000
09a7cdcc4b* exceptions.cc (exception::myfault_handle): Only handle the minimum amount of exceptions the myfault handler was designed for.
Corinna Vinschen
2014-04-09 19:20:01 +0000
584c857700* cygserver_ipc.h (ipc_set_proc_info): Add bool parameter to specify whether or not to send signal_arrived. * shm.cc (client_request_shm::client_request_shm): Call ipc_set_proc_info with bool parameter set to true to not send signal_arrived.
Corinna Vinschen
2014-04-07 11:25:58 +0000
d2ee481248* process.cc (process::process): Only notice that signal_arrived is NULL in debug output.
Corinna Vinschen
2014-04-07 11:19:29 +0000
2567de84462014-04-04 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2014-04-04 21:52:07 +0000
d83d5c7d7b2014-04-04 Ashish Kapania <akapania@ti.com>
Jeff Johnston
2014-04-04 21:43:55 +0000
d3925b72d52014-04-04 Ashish Kapania <akapania@ti.com>
Jeff Johnston
2014-04-04 21:40:59 +0000