summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * sec_auth.cc (verify_token): Allow builtin groups missing in a tokenCorinna Vinschen2008-07-092-2/+12
| | | | and it's still valid. Explain why.
* * mkgroup.c: Use statically linked functions throughout, except forCorinna Vinschen2008-07-093-341/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout. Use defines instead of constants throughout. (MAX_SID_LEN): Define. (load_netapi): Just load DsGetDcNameW pointer. (psx_dir): Remove. (uni2ansi): Remove. (enum_local_users): Take server name and use in Net... call. (DBGSID): Define datastructure. (MAX_BUILTIN_SIDS): Define. (builtin_sid_list): Define global sid list. (builtin_sid_cnt): Define counter for global sid list. (enum_local_groups): Take server name and use in Net... and Lookup... calls. Take offset argument. Use MAX_PREFERRED_LENGTH in call to NetLocalGroupEnum. Check for duplicate builtin groups. (enum_users): Take server name and use in Net... call. (usage): Change text slightly. (print_version): Fix copyright. (main): Call enum_local_groups for domains as well. * mkpasswd.c: Use statically linked functions throughout, except for DsGetDcNameW. Reformat. Convert to use WCHAR for names throughout. Use defines instead of constants throughout. (MAX_SID_LEN): Define. (load_netapi): Just load DsGetDcNameW pointer. (uni2ansi): Use wcstombs. (current_user): Replace "unused_by_nt/2000/xp" by just "unused". (enum_users): Ditto. (print_version): Fix copyright.
* * autoload.cc (DsGetDcNameW): Replace DsGetDcNameA.Corinna Vinschen2008-07-097-129/+118
| | | | | | | | | | | | | | | | | | * dcrt0.cc (child_info_spawn::handle_spawn): Drop artificial supplementary group list from calling setgroups in parent. * grp.cc (internal_getgroups): Drop 9x-only code. Reformat. * sec_auth.cc (get_logon_server): Do everything in WCHAR only. (get_user_groups): Ditto. Use wlogonserver in LookupAccountNameW calls, too. (is_group_member): Get logon server as first argument and use in call to NetLocalGroupGetMembers. (get_user_local_groups): Get logon server as first argument and use in calls to NetLocalGroupEnum and LookupAccountNameW. Revamp to work more correctly in domain environments. (get_server_groups): Accommodate aforementioned changed function calls. * security.h (get_logon_server): Change prototype accordingly. * uinfo.cc (cygheap_user::env_logsrv): Accommodate changed get_logon_server call.
* * grp.cc (internal_getgroups): Also add integrity-enabled groups.Corinna Vinschen2008-07-092-1/+6
|
* * sec_auth.cc (verify_token): Disable code which returns false ifCorinna Vinschen2008-07-092-0/+17
| | | | | the token contains additional groups not requested by setgroups. Explain why.
* 2008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com>Jeff Johnston2008-07-082-1/+6
| | | | | * libc/machine/mn10300/memset.S: Fix bug where return value is incorrectly set if number of bytes set is a multiple of 4.
* * fhandler_socket.cc (fhandler_socket::bind): Don't run explicitCorinna Vinschen2008-07-085-7/+50
| | | | | | | | | | local socket test in SO_REUSEADDR case on systems supporting enhanced socket security. Explain why. Only call address_in_use for AF_INET sockets. * net.cc (cygwin_setsockopt): Don't call setsockopt to set SO_REUSEADDR on systems supporting enhanced socket security. Add comment. * wincap.h (wincaps::has_enhanced_socket_security): New element. * wincap.cc: Implement above element throughout.
* * net.cc (ipv6_inited): Make NO_COPY.Corinna Vinschen2008-07-082-1/+5
|
* 2008-07-07 Stan Shebs <stan@codesourcery.com>Stan Shebs2008-07-072-0/+6
| | | | * dis-asm.h (struct disassemble_info): Add endian_code field.
* * safe-ctype.h: Add #include of ctype.h before redefiningJoel Brobecker2008-07-072-1/+9
| | | | the ctype.h macros.
* 2008-07-07 Hans-Peter Nilsson <hp@axis.com>Jeff Johnston2008-07-072-1/+7
| | | | | * libc/machine/mips/strncpy.c: Include stdint.h to get uintptr_t. (strncpy): Cast src to uintptr_t before checking alignment with "&".
* 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net>Danny Smith2008-07-072-3/+8
| | | | | * include/ctype.h (_imp____mb_cur_max): Correct spelling. (_imp____mb_cur_max_dll): Likewise.
* * safe-ctype.h: Remove #error when detecting that ctype.h has beenJoel Brobecker2008-07-042-4/+38
| | | | | included. Redefine the various macros provided by ctype.h as undefined variables.
* * include/stdio.h (swprintf, vswprintf): Guard with #ifndef ↵Danny Smith2008-07-043-5/+17
| | | | | | __STRICT_ANSI__ * include/wchar.h (swprintf, vswprintf): Likewise.
* 2008-07-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-027-0/+19
| | | | | | | | | * libc/argz/argz_count.c: Include stddef.h to get size_t. * libc/argz/argz_extract.c: Ditto. * libc/argz/argz_stringify.c: Ditto. * libc/search/hash.h: Ditto. * libc/sys/linux/include/sched.h: Ditto. * libc/sys/linux/sys/types.h: Ditto.
* 2008-07-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2008-07-022-0/+25
| | | | | * libc/machine/mips/strncpy.c (strncpy): Fix logic so unaligned source data is taken care of before loop unrolling.
* * path.cc (path_conv::is_binary): Fix test. Add comment.Corinna Vinschen2008-07-022-2/+8
|
* Add _get_output_format(), _set_output_format() for MSVCRT >= MSVCR80Keith Marshall2008-07-013-6/+24
|
* * Makefile.in: Temporarily add ability to generate pdfs.Christopher Faylor2008-07-012-1/+13
|
* * effectively.sgml: Correct subject-verb agreement, missing verbChristopher Faylor2008-06-272-35/+40
| | | | (typo), preposition and (definite vs indefinite) article use.
* 2008-06-25 Brandon Sneed <nivenh@sourceware.org>Brandon Sneed2008-06-252-3/+11
| | | | | | | * include/winbase.h (GetProcessHandleCount, GetSystemRegistryQuota, GetThreadIOPendingFlag): Modified to rely on _WIN32_WINNT 0x0501 instead of 0x0502. Bug reported by Thomas Denk.
* 2008-06-25 Brandon Sneed <nivenh@sourceware.org>Brandon Sneed2008-06-252-7/+14
| | | | | | | * include/winbase.h (InterlockedIncrement, InterlockedDecrement, InterlockedCompareExchange, InterlockedExchange, InterlockedCompareExchangePointer, InterlockedExchangeAdd, InterlockedExchangePointer): Modified from PLONG to LONG volatile *.
* Fix strict-aliasing issues with _strtod_r and Storeinc.Hans-Peter Nilsson2008-06-253-58/+47
| | | | | | | | | | | | | | * libc/stdlib/strtod.c (_strtod_r): Change local variables aadj, rv, rv0 from double to type U. Use accessor macros dval, dword0 and dword1 for all accesses except for the ULtod call, where rv.i replaces the pointer cast. * libc/stdlib/mprec.h (U): Rename member L to i for easier re-use of access macros. Tweak comment. Remove #ifdef'd YES_ALIAS code. (dword0, dword1, dval): Define in terms of uncast union member access. Ditto for _DOUBLE_IS_32BITS variants. (Storeinc): Replace aliasing-flawed microoptimized definition with alternative suggested in comment. Remove now stale comment.
* * net.cc (cygwin_bindresvport_sa): Fix usage of last_used_bindresvport.Corinna Vinschen2008-06-242-2/+6
|
* merge from gccDJ Delorie2008-06-242-0/+13
|
* * include/limits.h (PATH_MAX): Add comment.Corinna Vinschen2008-06-213-1/+8
| | | | | * include/cygwin/config.h (__FILENAME_MAX__): Define as 4096. Add comment.
* * libc/include/machine/setjmp.h (_longjmp): Define as function onCorinna Vinschen2008-06-212-1/+12
| | | | | Cygwin. (_setjmp): Ditto.
* Committed as obvious.Danny Smith2008-06-203-2/+8
| | | | | | * lib/ddk/hal.def (HalTranslateBusAddress): Correct suffix. * lib/ddk/ntoskrnl.def (MmAllocateContiguousMemory): Correct suffix. Bug reported by Brian Hawley.
* * faq-using.xml: Add more words about multiple cygwins.Christopher Faylor2008-06-202-1/+70
|
* * fhandler_tty.cc (fhandler_pty_master::setup): Fix pipe inheritance.Corinna Vinschen2008-06-192-2/+6
|
* * strsig.cc (strsignal): Return non-const buffer to allow building with recentChristopher Faylor2008-06-192-3/+12
| | | | newlib change.
* * src-release (BINUTILS_SUPPORT_DIRS): Remove mkdep and depcomp.Ian Lance Taylor2008-06-182-1/+3
|
* 2008-06-18 Ian Lance Taylor <iant@google.com>Ian Lance Taylor2008-06-182-1/+5
| | | | * src-release (BINUTILS_SUPPORT_DIRS): Add depcomp.
* Per Posix, strsignal returns non-const char*.Eric Blake2008-06-182-1/+6
| | | | * libc/include/string.h (strsignal): Fix return type.
* common.h (EM_CR16): Correct value.Swami Reddy M R2008-06-181-0/+5
| | | | (EM_CR16): Rename to EM_CR16_OLD.
* common.h (EM_CR16): Correct value.Swami Reddy M R2008-06-181-2/+3
| | | | (EM_CR16): Rename to EM_CR16_OLD.
* * configure: Regenerate.Ralf Wildenhues2008-06-174-16/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config/ * override.m4: Use m4_version_prereq throughout. (_AC_ARG_VAR_VALIDATE, AC_MSG_FAILURE): Backport from git Autoconf: output pwd along with fatal errors, so the right config.log file is hinted at more prominently. (PARSE_ARGS): Push setting of ac_pwd in this diversion. (_GCC_AUTOCONF_VERSION): New, define to 2.59 if not defined. (_GCC_AUTOCONF_VERSION_CHECK): New macro, require use of Autoconf version _GCC_AUTOCONF_VERSION throughout the tree. (m4_wrap): New override, fix for Posix semantics of m4wrap. binutils/ * configure: Regenerate. opcodes/ * configure: Regenerate. bfd/ * configure: Regenerate. gas/ * configure: Regenerate. gprof/ * configure: Regenerate. ld/ * config.in: Regenerate. * configure: Regenerate.
* * sec_auth.cc (DsGetDcNameA): Drop declaration.Corinna Vinschen2008-06-172-5/+5
| | | | (DS_FORCE_REDISCOVERY): Drop definition.
* * include/dsgetdc.h (DS_FORCE_REDISCOVERY, DS_FORCE_REDISCOVERY,Corinna Vinschen2008-06-173-0/+38
| | | | | | | | | | | | DS_DIRECTORY_SERVICE_REQUIRED, DS_DIRECTORY_SERVICE_PREFERRED, DS_GC_SERVER_REQUIRED, DS_PDC_REQUIRED, DS_BACKGROUND_ONLY, DS_IP_REQUIRED, DS_KDC_REQUIRED, DS_TIMESERV_REQUIRED, DS_WRITABLE_REQUIRED, DS_GOOD_TIMESERV_PREFERRED, DS_AVOID_SELF, DS_ONLY_LDAP_NEEDED, DS_IS_FLAT_NAME, DS_IS_DNS_NAME, DS_RETURN_DNS_NAME, DS_RETURN_FLAT_NAME): Define. (DsGetDcNameW, DsGetDcNameA): Declare. (DsGetDcName): Define. * lib/netapi32.def (DsGetDcNameA, DsGetDcNameW): Export.
* 2008-06-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-172-0/+298
| | | | | * libc/machine/spu/sys/linux_syscalls.h: New file to add Linux syscall support.
* 2008-06-17 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-172-0/+67
| | | | | * spu/Makefile.in: Add new file. * spu/linux_syscalls.c: New file to add Linux syscall support.
* * app.c (do_scrub_chars): Do not UNGET an EOF value.Nick Clifton2008-06-172-4/+85
| | | | | | | | | | * ti.h (GET_SCNHDR_NLNNO): Provide an alternative version of this macro which does not trigger an array bounds warning in gcc. (PUT_SCNHDR_NLNNO): Likewise. (GET_SCNHDR_FLAGS): Likewise. (PUT_SCNHDR_FLAGS): Likewise. (GET_SCNHDR_PAGE): Likewise. (PUT_SCNHDR_PAGE): Likewise.
* * spawn.cc (spawn_guts): Reinstate call to fhandler_console::need_invisibleChristopher Faylor2008-06-172-0/+8
| | | | since it is required to prevent console flashing.
* * include/resolv.h (_getshort): Drop declaration.Corinna Vinschen2008-06-172-4/+5
| | | | (_getlong): Ditto.
* * configure.ac: Set TOPLEVEL_CONFIGURE_ARGUMENTS early, whenRalf Wildenhues2008-06-163-59/+66
| | | | | "$@" is still intact with both Autoconf 2.59 and 2.62. * configure: Regenerate.
* * Makefile.tpl: Fix comment errors.Ralf Wildenhues2008-06-163-10/+15
| | | | * Makefile.in: Regenerate.
* 2008-06-16 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-164-0/+25
| | | | | | * libc/machine/spu/sys/dirent.h: Add extern "C" specifier if C++. * libc/machine/spu/sys/sched.h: Likewise. * libc/machine/spu/sys/syscall.h: Likewise.
* 2008-06-16 Ken Werner <ken.werner@de.ibm.com>Jeff Johnston2008-06-1611-0/+41
| | | | | | | | | | | | | | | | * libc/machine/spu/mk_syscalls: Provide .type and .size directives in generated assembler files. * libc/machine/spu/fprintf.S: Regenerate. * libc/machine/spu/fscanf.S: Regenerate. * libc/machine/spu/printf.S: Regenerate. * libc/machine/spu/scanf.S: Regenerate. * libc/machine/spu/snprintf.S: Regenerate. * libc/machine/spu/sprintf.S: Regenerate. * libc/machine/spu/sscanf.S: Regenerate. * libc/machine/spu/stack_reg_va.S (__stack_reg_va): Provide .type and .size directives. * libc/machine/spu/setjmp.S (setjmp): Likewise. (longjmp): Likewise.
* 2008-06-16 Corrin Meyer <cjmeyer@gmail.com>Jeff Johnston2008-06-162-1/+5
| | | | * m68k/cf-crt1.c[__mcf_family_m1qe]: Don't access CACR.
* Committed as obvious.Danny Smith2008-06-143-2/+9
| | | | | | | [mingw-Bugs-1801641] * include/wchar.h (_wfdopen): Const-ify second arg. * include/stdio.h (_wfdopen): Likewise. Thanks to <tdragon at users dot sourceforge net>