]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
10 years ago * select.cc (start_thread_socket): Delete si on early return in case of
Corinna Vinschen [Mon, 23 Jun 2014 14:56:45 +0000 (14:56 +0000)]
* select.cc (start_thread_socket): Delete si on early return in case of
an error (CID 59967).

10 years ago * regex/regcomp.c (computematchjumps): Free local memory in case of
Corinna Vinschen [Mon, 23 Jun 2014 14:33:55 +0000 (14:33 +0000)]
* regex/regcomp.c (computematchjumps): Free local memory in case of
error (CID 59975).

10 years ago * mount.cc (fs_info::update): Define dir in the outermost scope to avoid
Corinna Vinschen [Mon, 23 Jun 2014 14:05:16 +0000 (14:05 +0000)]
* mount.cc (fs_info::update): Define dir in the outermost scope to avoid
accessing out-of-scope value (CID 60027).  Always initialize attr to
upath (CID 60113).

10 years ago * malloc_wrapper.cc (mallinfo): Initialize m if external malloc is used,
Corinna Vinschen [Mon, 23 Jun 2014 13:45:49 +0000 (13:45 +0000)]
* malloc_wrapper.cc (mallinfo): Initialize m if external malloc is used,
too (CID 60120).

10 years ago * localtime.cc (tzload): Fix leaking memory (CID 60001).
Corinna Vinschen [Mon, 23 Jun 2014 13:38:06 +0000 (13:38 +0000)]
* localtime.cc (tzload): Fix leaking memory (CID 60001).

10 years ago * exceptions.cc (try_to_debug): Free environment pointer when not used
Corinna Vinschen [Mon, 23 Jun 2014 13:23:14 +0000 (13:23 +0000)]
* exceptions.cc (try_to_debug): Free environment pointer when not used
anymore (CID 59968).

10 years ago * net.cc (cygwin_getaddrinfo): Fix value of hint->ai_addrlen on 64 bit.
Corinna Vinschen [Mon, 23 Jun 2014 12:35:31 +0000 (12:35 +0000)]
* net.cc (cygwin_getaddrinfo): Fix value of hint->ai_addrlen on 64 bit.
Explain why.

10 years ago * environ.cc (regopt): Allocate small local buffer to avoid copying
Corinna Vinschen [Mon, 23 Jun 2014 11:43:33 +0000 (11:43 +0000)]
* environ.cc (regopt): Allocate small local buffer to avoid copying
twice.  Fixes resource leak (CID 60012).  Add comment.

10 years ago * dll_init.cc (dll_list::alloc): Fix buffer overrun (CID 59940).
Corinna Vinschen [Mon, 23 Jun 2014 10:52:44 +0000 (10:52 +0000)]
* dll_init.cc (dll_list::alloc): Fix buffer overrun (CID 59940).

10 years ago * dcrt0.cc (insert_file): Fix resource leaks (CIDs 59987, 59988).
Corinna Vinschen [Mon, 23 Jun 2014 10:18:26 +0000 (10:18 +0000)]
* dcrt0.cc (insert_file): Fix resource leaks (CIDs 59987, 59988).

10 years ago * client.cc: Throughout, fix debug output of signed byte count value.
Corinna Vinschen [Mon, 23 Jun 2014 09:17:24 +0000 (09:17 +0000)]
* client.cc: Throughout, fix debug output of signed byte count value.

10 years ago * ldap.cc (CYG_LDAP_TIMEOUT): Set to 5 secs.
Corinna Vinschen [Mon, 23 Jun 2014 09:09:54 +0000 (09:09 +0000)]
* 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.

10 years ago * ldap.cc (CYG_LDAP_TIMEOUT): Define as timeout value. Set to 30 secs
Corinna Vinschen [Wed, 18 Jun 2014 17:41:52 +0000 (17:41 +0000)]
* 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.

10 years ago* faq-programming.xml: Add gettext-devel to list of packages needed to build
Christopher Faylor [Tue, 17 Jun 2014 14:49:06 +0000 (14:49 +0000)]
* faq-programming.xml: Add gettext-devel to list of packages needed to build
Cygwin.

10 years agoFix timestamp
Corinna Vinschen [Tue, 17 Jun 2014 13:13:06 +0000 (13:13 +0000)]
Fix timestamp

10 years ago * libc/rexec.cc (cygwin_rexec): Make ahostbuf static to avoid returning
Corinna Vinschen [Tue, 17 Jun 2014 08:46:59 +0000 (08:46 +0000)]
* libc/rexec.cc (cygwin_rexec): Make ahostbuf static to avoid returning
an out-of-scope address.

10 years ago* passwd.c (main): Fix typo in error output.
Corinna Vinschen [Mon, 16 Jun 2014 13:27:08 +0000 (13:27 +0000)]
* passwd.c (main): Fix typo in error output.

10 years ago * fhandler_socket.cc (fhandler_socket::evaluate_events): Call
Corinna Vinschen [Mon, 16 Jun 2014 13:01:40 +0000 (13:01 +0000)]
* fhandler_socket.cc (fhandler_socket::evaluate_events): Call
WSASetLastError after setsockopt.  Explain why.

10 years ago * grp.cc (getgrouplist): Fix setting ngroups to make sure to return
Corinna Vinschen [Mon, 16 Jun 2014 09:12:29 +0000 (09:12 +0000)]
* grp.cc (getgrouplist): Fix setting ngroups to make sure to return
the right value.

10 years agomerge from gcc
DJ Delorie [Wed, 11 Jun 2014 17:56:17 +0000 (17:56 +0000)]
merge from gcc

10 years ago * libc/machine/aarch64/strchrnul.S: New file.
Richard Earnshaw [Wed, 11 Jun 2014 10:42:54 +0000 (10:42 +0000)]
* 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.

10 years ago * libc/machine/aarch64/strchr.S: New file
Richard Earnshaw [Tue, 10 Jun 2014 14:04:31 +0000 (14:04 +0000)]
* 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.

10 years ago* configure.host (default_newlib_nano_malloc): New.
DJ Delorie [Tue, 10 Jun 2014 03:09:35 +0000 (03:09 +0000)]
* 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.

10 years ago* timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf, printing
Christopher Faylor [Thu, 5 Jun 2014 19:50:24 +0000 (19:50 +0000)]
* timer.cc (timer_tracker::cancel): Demote api_fatal to system_printf, printing
more details about odd failure condition.

10 years ago * autoload.cc (ldap_memfreeW): Remove.
Corinna Vinschen [Fri, 23 May 2014 10:29:11 +0000 (10:29 +0000)]
* 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.

10 years ago*** empty log message ***
Corinna Vinschen [Fri, 23 May 2014 07:15:30 +0000 (07:15 +0000)]
*** empty log message ***

10 years ago * autoload.cc (ldap_abandon): Remove.
Corinna Vinschen [Thu, 22 May 2014 20:07:25 +0000 (20:07 +0000)]
* 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.

10 years ago * sec_auth.cc (get_server_groups): Call get_user_local_groups only if
Corinna Vinschen [Thu, 22 May 2014 16:40:13 +0000 (16:40 +0000)]
* sec_auth.cc (get_server_groups): Call get_user_local_groups only if
get_logon_server succeeded.

10 years agomerge from gcc
DJ Delorie [Thu, 22 May 2014 15:01:34 +0000 (15:01 +0000)]
merge from gcc

10 years ago * ldap.cc (cyg_ldap::fetch_ad_account): Take additional domain string
Corinna Vinschen [Thu, 22 May 2014 14:50:24 +0000 (14:50 +0000)]
* 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.

10 years ago * gmon.h: Pull in profile.h. Explain why.
Corinna Vinschen [Thu, 22 May 2014 10:25:45 +0000 (10:25 +0000)]
* gmon.h: Pull in profile.h.  Explain why.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix potential SEGV
Corinna Vinschen [Thu, 22 May 2014 09:47:23 +0000 (09:47 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Fix potential SEGV
referencing NULL pointer.

10 years ago * libc/bsdlib.cc (forkpty): Close master and slave if fork fails to
Corinna Vinschen [Thu, 22 May 2014 09:45:17 +0000 (09:45 +0000)]
* libc/bsdlib.cc (forkpty): Close master and slave if fork fails to
avoid resource leak (CID 59997).
* libc/fts.c: Update to FreeBSD version 1.39 (CID 59947).
* libc/minires.c (minires_get_search): Fix out-of-bounds read from
words array (CID 59937).

10 years ago * flock.cc (delete_lock_in_parent): Use LIST_FOREACH_SAFE to avoid
Corinna Vinschen [Tue, 20 May 2014 14:54:06 +0000 (14:54 +0000)]
* flock.cc (delete_lock_in_parent): Use LIST_FOREACH_SAFE to avoid
dereferencing freed pointer (CID 60224).

10 years ago * fhandler_procsysvipc.cc (format_procsysvipc_msg): Rearrange code to
Corinna Vinschen [Tue, 20 May 2014 14:49:02 +0000 (14:49 +0000)]
* fhandler_procsysvipc.cc (format_procsysvipc_msg): Rearrange code to
avoid resource leakage (CID 60002).  Don't use tmp_pathbuf, explain why.
Fix indentation.
(format_procsysvipc_sem): Ditto.
(format_procsysvipc_shm): Ditto (CID 60003).

10 years ago * fhandler_process.cc (get_mem_values): Rearrange code slightly to
Corinna Vinschen [Tue, 20 May 2014 11:20:02 +0000 (11:20 +0000)]
* 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).

10 years ago * fhandler_proc.cc (format_proc_swaps): Use tmp_pathbuf for filename,
Corinna Vinschen [Tue, 20 May 2014 11:00:37 +0000 (11:00 +0000)]
* fhandler_proc.cc (format_proc_swaps): Use tmp_pathbuf for filename,
rather than allocating and forgetting to free (CID 59982).

10 years ago * fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Fix floppy
Corinna Vinschen [Tue, 20 May 2014 10:25:32 +0000 (10:25 +0000)]
* fhandler_floppy.cc (fhandler_dev_floppy::get_drive_info): Fix floppy
drive handling broken with 1.7.19.

10 years ago * scandir.cc (scandir): Assume namelist is always valid, per POSIX.
Corinna Vinschen [Tue, 20 May 2014 10:21:34 +0000 (10:21 +0000)]
* 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.

10 years ago * pseudo-reloc.cc (__report_error): Raise size of module name buffer to
Corinna Vinschen [Mon, 19 May 2014 16:56:31 +0000 (16:56 +0000)]
* pseudo-reloc.cc (__report_error): Raise size of module name buffer to
PATH_MAX.  Fix length in call to GetModuleFileNameW (CID 59947).

10 years ago * net.cc (call_gaa): Fix setting pa_ret pointer in case of an error
Corinna Vinschen [Mon, 19 May 2014 15:57:22 +0000 (15:57 +0000)]
* 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).

10 years ago* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 31.
Corinna Vinschen [Mon, 19 May 2014 14:31:08 +0000 (14:31 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 31.

10 years ago * dtable.cc (handle_to_fn): Fix length parameter in call to
Corinna Vinschen [Mon, 19 May 2014 11:17:59 +0000 (11:17 +0000)]
* dtable.cc (handle_to_fn): Fix length parameter in call to
QueryDosDeviceW (CID 59936).

10 years ago * pinfo.cc (pinfo_basic::pinfo_basic): Fix size of progname array in
Corinna Vinschen [Mon, 19 May 2014 10:46:47 +0000 (10:46 +0000)]
* pinfo.cc (pinfo_basic::pinfo_basic): Fix size of progname array in
call to GetModuleFileNameW (CID 59935).

10 years ago * smallprintf.cc (__small_vsprintf): Add missing break in 'C' case.
Corinna Vinschen [Mon, 19 May 2014 10:42:04 +0000 (10:42 +0000)]
* smallprintf.cc (__small_vsprintf): Add missing break in 'C' case.

10 years ago * exceptions.cc (try_to_debug): Fix size of dbg_cmd (CID 59929).
Corinna Vinschen [Mon, 19 May 2014 10:28:54 +0000 (10:28 +0000)]
* exceptions.cc (try_to_debug): Fix size of dbg_cmd (CID 59929).

10 years ago * bsd_mutex.cc (msleep_sync_array::~msleep_sync_array): New destructor
Corinna Vinschen [Mon, 19 May 2014 09:52:43 +0000 (09:52 +0000)]
* bsd_mutex.cc (msleep_sync_array::~msleep_sync_array): New destructor
to make Coverity happy (CID 59838).

10 years ago * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs to make
Corinna Vinschen [Mon, 19 May 2014 09:49:15 +0000 (09:49 +0000)]
* 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).

10 years ago * syscalls.cc (getusershell): Fix buffer overrun (Coverity ID 59932).
Corinna Vinschen [Mon, 19 May 2014 08:29:47 +0000 (08:29 +0000)]
* syscalls.cc (getusershell): Fix buffer overrun (Coverity ID 59932).

10 years ago * external.cc (cygwin_internal): Use local name buffer instead of
Corinna Vinschen [Fri, 16 May 2014 12:13:57 +0000 (12:13 +0000)]
* external.cc (cygwin_internal): Use local name buffer instead of
allocated one in CW_CYGNAME_FROM_WINNAME.

10 years ago * libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.
Corinna Vinschen [Thu, 15 May 2014 13:14:25 +0000 (13:14 +0000)]
* libc/machine/sparc/setjmp.S (longjmp): Use register g1 instead of g6.

10 years ago * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 273.
Corinna Vinschen [Thu, 15 May 2014 11:24:42 +0000 (11:24 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump to 273.

10 years ago * external.cc (cygwin_internal): Implement CW_CYGNAME_FROM_WINNAME.
Corinna Vinschen [Thu, 15 May 2014 11:16:28 +0000 (11:16 +0000)]
* 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.

10 years ago2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
Sandra Loosemore [Wed, 14 May 2014 23:24:37 +0000 (23:24 +0000)]
2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>

Sync from GCC mainline.

* configure.ac (target_makefile_frag): Set for nios2-*-elf*.
* configure: Regenerated.

config/
* mt-nios2-elf: New file.

10 years agomerge from gcc
DJ Delorie [Wed, 14 May 2014 17:23:22 +0000 (17:23 +0000)]
merge from gcc

10 years ago * libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when double
Corinna Vinschen [Wed, 14 May 2014 11:33:24 +0000 (11:33 +0000)]
* libc/include/machine/ieeefp.h: Define _DOUBLE_IS_32BITS when double
options is not __RL78_64BIT_DOUBLES__.

10 years ago * sec_auth.cc (get_server_groups): Call get_logon_server only for
Corinna Vinschen [Wed, 14 May 2014 11:27:47 +0000 (11:27 +0000)]
* 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.

10 years ago * fhandler_socket.cc (fhandler_socket::ioctl): Handle the different
Corinna Vinschen [Tue, 13 May 2014 16:07:50 +0000 (16:07 +0000)]
* fhandler_socket.cc (fhandler_socket::ioctl): Handle the different
ideas of u_long between Winsock and Cygwin applications on x86_64.
Add long comment.

10 years ago * minidumper.cc (filter_minidump_type): New function.
Jon TURNEY [Tue, 13 May 2014 10:26:26 +0000 (10:26 +0000)]
* 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.

10 years ago * Makefile.in (minidumper.exe): Link directly with dbghelp.
Jon TURNEY [Tue, 13 May 2014 10:24:16 +0000 (10:24 +0000)]
* Makefile.in (minidumper.exe): Link directly with dbghelp.
* minidumper.cc (minidump): Ditto.

10 years ago * libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.
Corinna Vinschen [Mon, 12 May 2014 17:02:11 +0000 (17:02 +0000)]
* libc/include/stdint.h (WCHAR_MIN): Copy definition from wchar.h.
(WCHAR_MAX): Ditto.
* libc/include/wchar.h (WCHAR_MIN): Add comment.
(WCHAR_MAX): Ditto.

10 years agoclarify checkin comment
Christopher Faylor [Sat, 10 May 2014 20:17:54 +0000 (20:17 +0000)]
clarify checkin comment

10 years ago* signal.cc (sigprocmask): Fix strace output to include "how".
Christopher Faylor [Fri, 9 May 2014 14:28:48 +0000 (14:28 +0000)]
* 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.

10 years ago * libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or
Corinna Vinschen [Fri, 9 May 2014 14:25:32 +0000 (14:25 +0000)]
* libc/include/stdio.h (tempnam): Declare as __BSD_VISIBLE or
__XSI_VISIBLE or if __POSIX_VISIBLE >= 200112.

10 years ago * libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only.
Corinna Vinschen [Fri, 9 May 2014 08:42:39 +0000 (08:42 +0000)]
* libc/include/stdio.h (fcloseall): Declare as __GNU_VISIBLE only.
(renameat): Drop explicit __CYGWIN__ dependency.

10 years ago * uinfo.cc (cygheap_user::init): Fix formatting in debug output.
Corinna Vinschen [Thu, 8 May 2014 19:33:07 +0000 (19:33 +0000)]
* 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.

10 years ago * grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducing
Corinna Vinschen [Thu, 8 May 2014 08:44:07 +0000 (08:44 +0000)]
* grp.cc (gr_ent::enumerate_caches): Fix copy/paste bug introducing
an endless loop.

10 years ago * passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing the
Corinna Vinschen [Wed, 7 May 2014 14:49:54 +0000 (14:49 +0000)]
* passwd.cc (pwdgrp::parse_passwd): Fix an off by one computing the
buffer len.  Add comment.
* uinfo.cc (internal_getlogin): Fix typo in comment.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Tweak SID<->uid
Corinna Vinschen [Wed, 7 May 2014 12:07:12 +0000 (12:07 +0000)]
* 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.

10 years ago * grp.cc (pwdgrp::parse_group): Set grp.len. Drop generating any
Corinna Vinschen [Wed, 7 May 2014 11:00:00 +0000 (11:00 +0000)]
* 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.

10 years ago * security.h (MAX_SUBAUTH_CNT): Drop. Use SID_MAX_SUB_AUTHORITIES
Corinna Vinschen [Tue, 6 May 2014 12:28:33 +0000 (12:28 +0000)]
* security.h (MAX_SUBAUTH_CNT): Drop.  Use SID_MAX_SUB_AUTHORITIES
instead throughout.
(MAX_SID_LEN): Drop.  Use SECURITY_MAX_SID_SIZE instead throughout.

10 years ago * grp.cc (internal_getgroups): Drop unused cygsid variable.
Corinna Vinschen [Tue, 6 May 2014 12:02:48 +0000 (12:02 +0000)]
* 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.

10 years ago * net.cc (cygwin_getsockopt): Rearrange code slightly and handle
Corinna Vinschen [Mon, 5 May 2014 15:18:17 +0000 (15:18 +0000)]
* net.cc (cygwin_getsockopt): Rearrange code slightly and handle
TCP_NODELAY just like SO_KEEPALIVE and SO_DONTROUTE.

10 years ago * libc/include/stdio.h: Declare various C99 printf/scanf functions for
Corinna Vinschen [Mon, 5 May 2014 12:53:47 +0000 (12:53 +0000)]
* libc/include/stdio.h: Declare various C99 printf/scanf functions for
C++11, too.

10 years ago* spawn.cc (av::setup): Eat trailing whitespace on #! script.
Christopher Faylor [Sat, 3 May 2014 19:58:20 +0000 (19:58 +0000)]
* spawn.cc (av::setup): Eat trailing whitespace on #! script.

10 years ago* fhandler_dsp.cc (ioctl): Use _ioctl for recursive call.
Christopher Faylor [Fri, 2 May 2014 15:14:17 +0000 (15:14 +0000)]
* fhandler_dsp.cc (ioctl): Use _ioctl for recursive call.

10 years ago * msp430/Makefile.in (NOSYS_OBJS): Add unlink.o.
Nick Clifton [Wed, 30 Apr 2014 11:30:14 +0000 (11:30 +0000)]
* msp430/Makefile.in (NOSYS_OBJS): Add unlink.o.
(SCRIPTS): Remove msp430F5438A-s.ld and msp430F5438A-s.ld.
* unlink.c: New file.

10 years ago* DevNotes: Add entry cgf-000026.
Christopher Faylor [Sat, 26 Apr 2014 17:38:22 +0000 (17:38 +0000)]
* 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.

10 years ago * syscalls.cc (NT_TRANSACTIONAL_ERROR): Cover all status codes up to
Corinna Vinschen [Fri, 25 Apr 2014 14:43:13 +0000 (14:43 +0000)]
* syscalls.cc (NT_TRANSACTIONAL_ERROR): Cover all status codes up to
STATUS_TRANSACTION_NOT_ENLISTED.

10 years ago * fhandler_socket.cc: On x86_64, define u_long as __ms_u_long before
Corinna Vinschen [Thu, 24 Apr 2014 13:44:23 +0000 (13:44 +0000)]
* 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.

10 years ago * miscfuncs.cc (check_iovec): Allow 0 as valid iovcnt value.
Corinna Vinschen [Wed, 23 Apr 2014 15:26:14 +0000 (15:26 +0000)]
* miscfuncs.cc (check_iovec): Allow 0 as valid iovcnt value.

10 years ago * libc/machine/arm/strcmp-arm-tiny.S: New file.
Richard Earnshaw [Tue, 22 Apr 2014 12:16:22 +0000 (12:16 +0000)]
* 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.

10 years ago * ldap.cc (user_attr): Remove "uid" attribute.
Corinna Vinschen [Tue, 22 Apr 2014 10:36:35 +0000 (10:36 +0000)]
* 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.

10 years ago* minidumper.cc (minidump): Fix copy and paste error in checking
Jon TURNEY [Mon, 21 Apr 2014 12:02:59 +0000 (12:02 +0000)]
* minidumper.cc (minidump): Fix copy and paste error in checking
result of OpenProcess().

10 years ago * winf.cc (linebuf::fromargv): Temporarily revert patch from 2014-01-24.
Corinna Vinschen [Fri, 18 Apr 2014 18:50:21 +0000 (18:50 +0000)]
* winf.cc (linebuf::fromargv): Temporarily revert patch from 2014-01-24.

10 years ago * cygtls.h (TP_NUM_C_BUFS): Raise to 50 to allow SYMLOOP_MAX recursions
Corinna Vinschen [Fri, 18 Apr 2014 14:29:49 +0000 (14:29 +0000)]
* 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.

10 years ago * pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
Corinna Vinschen [Wed, 16 Apr 2014 09:26:41 +0000 (09:26 +0000)]
* pwdgrp.cc (client_request_pwdgrp::pwd_serve): Add 1 to the message
length to account for the trailing NUL.

10 years ago*** empty log message ***
Corinna Vinschen [Wed, 16 Apr 2014 09:04:25 +0000 (09:04 +0000)]
*** empty log message ***

10 years ago * net.cc (cygwin_setsockopt): Ignore IPV6_TCLASS the same way as IP_TOS.
Corinna Vinschen [Wed, 16 Apr 2014 08:58:20 +0000 (08:58 +0000)]
* net.cc (cygwin_setsockopt): Ignore IPV6_TCLASS the same way as IP_TOS.

10 years ago * cygserver-config: Use numeric id 18 instead of "system" in chown.
Corinna Vinschen [Wed, 16 Apr 2014 08:44:58 +0000 (08:44 +0000)]
* cygserver-config: Use numeric id 18 instead of "system" in chown.

10 years ago * libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
Corinna Vinschen [Mon, 14 Apr 2014 14:08:26 +0000 (14:08 +0000)]
* libc/sys/rtems/sys/cpuset.h (CPU_SET_S): Add const qualifier.
(CPU_SET): Likewise.

10 years ago * uinfo.cc (pwdgrp::fetch_account_from_windows): Fix gid evaluation
Corinna Vinschen [Sat, 12 Apr 2014 11:10:13 +0000 (11:10 +0000)]
* uinfo.cc (pwdgrp::fetch_account_from_windows): Fix gid evaluation
for local accounts.

10 years ago * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 30.
Corinna Vinschen [Thu, 10 Apr 2014 19:20:49 +0000 (19:20 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 30.

10 years ago* libc/machine/rl78/setjmp.S: Add RL78/G10 support.
DJ Delorie [Wed, 9 Apr 2014 21:35:43 +0000 (21:35 +0000)]
* libc/machine/rl78/setjmp.S: Add RL78/G10 support.

10 years ago * exceptions.cc (exception::myfault_handle): Only handle the minimum
Corinna Vinschen [Wed, 9 Apr 2014 19:20:01 +0000 (19:20 +0000)]
* exceptions.cc (exception::myfault_handle): Only handle the minimum
amount of exceptions the myfault handler was designed for.

10 years ago * cygwin.sc.in: (Temporarily?) workaround serious ld bug which
Corinna Vinschen [Tue, 8 Apr 2014 14:13:59 +0000 (14:13 +0000)]
* cygwin.sc.in: (Temporarily?) workaround serious ld bug which
truncates symbols in certain computations to 32 bit.  See
https://sourceware.org/bugzilla/show_bug.cgi?id=16821

10 years agorelease/1.7.29
Corinna Vinschen [Mon, 7 Apr 2014 11:41:49 +0000 (11:41 +0000)]
release/1.7.29

10 years ago * cygserver_ipc.h (ipc_set_proc_info): Add bool parameter to specify
Corinna Vinschen [Mon, 7 Apr 2014 11:25:58 +0000 (11:25 +0000)]
* 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.

10 years ago * process.cc (process::process): Only notice that signal_arrived is
Corinna Vinschen [Mon, 7 Apr 2014 11:19:29 +0000 (11:19 +0000)]
* process.cc (process::process): Only notice that signal_arrived is
NULL in debug output.

10 years ago2014-04-04 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 4 Apr 2014 21:52:07 +0000 (21:52 +0000)]
2014-04-04  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Add to current TI license to
        include tirtos addition.

This page took 0.065608 seconds and 5 git commands to generate.