Commit Graph

  • af15c95e70 * config/i386/profile.h (mcount): Mark asms volatile. Brian Dessent 2008-08-05 19:20:58 +0000
  • 53364a1fae * dll_init.cc (dll_global_dtors): Add an additional test to avoid walking the linked list if it is empty. (dll_list::detach): Don't set dll_global_dtors_recorded if we aren't actually going to record any dlls. Christopher Faylor 2008-08-05 14:26:47 +0000
  • bee18f45fd Changes suggested by Dave Korn. * dcrt0.cc (cygwin_exit): Remove (hopefully) extraneous call to dll_global_dtors. * dll_init.cc (dll_global_dtors): Run destructors in reverse dependency/load order. * dll_init.h (dll_list): Add dll_global_dtors as a friend. Christopher Faylor 2008-08-04 15:55:32 +0000
  • ea8432dfb1 * cygcheck.cc (load_cygwin): Duplicate argv list since it disappears when cygwin1.dll is unloaded. Christopher Faylor 2008-08-04 15:30:06 +0000
  • ef432bbddf * common.h (ELFOSABI_AROS): Update comment. Alan Modra 2008-08-03 23:20:42 +0000
  • f65427cd09 * mt-spu (all-ld): Update for ld Makefile changes. Alan Modra 2008-08-03 03:38:07 +0000
  • e852daa1f5 * tcl.m4 (SC_PATH_TCLCONFIG): Add some simple logic to deal with cygwin. (SC_PATH_TKCONFIG): Likewise. Keith Seitz 2008-08-02 21:20:13 +0000
  • b5bffab8d3 gas/ * config/tc-ppc.c (parse_cpu): Rename altivec_or_spe to retain_flags. Handle -mvsx and -mpower7. (md_show_usage): Document -mpower7 and -mvsx. * doc/as.texinfo (Target PowerPC): Document -mvsx. * doc/c-ppc.texi (PowerPC-Opts): Document -mvsx and -mpower7. Peter Bergner 2008-08-02 04:38:51 +0000
  • b23b171641 * dcrt0.cc (dll_crt0_1): Add a symbol denoting return from call to main(). * exceptions.cc (stack_info::walk): Stop walking the stack when we hit _cygwin_exit_return rather than just blindly stopping when PC becomes zero. Christopher Faylor 2008-08-01 19:12:49 +0000
  • 3462d736b6 * path.cc (symlink_info::check): Handle (and explain) a special case when accessing files matching DOS device names on SMB shares. Corinna Vinschen 2008-07-31 14:48:28 +0000
  • 9fe98985b3 * spawn.cc (spawn_guts): Check constructed short pathname for being a DOS device name and fall back to long path name, if so. Corinna Vinschen 2008-07-31 14:41:19 +0000
  • 9ad2ea2fd9 2008-07-30 Paolo Bonzini <bonzini@gnu.org> Paolo Bonzini 2008-07-30 15:03:57 +0000
  • d79a78e5c8 * fhandler_disk_file.cc (fhandler_base::fstat_by_name): Check for file systems incapable of handling FileIdBothDirectoryInformation correctly. (fhandler_disk_file::opendir): Ditto. * path.cc (fs_info::update): Always clear at the start. Rearrange to make certain tests only on non-Samba, non-NFS remote drives. Add test for file systems known to be incapable of handling FileIdBothDirectoryInformation correctly. Right now that's just "UNIXFS". * path.h (struct fs_info): Add has_buggy_fileid_dirinfo flag and accessor methods. (class path_conv): Add has_buggy_fileid_dirinfo method. Corinna Vinschen 2008-07-30 14:41:59 +0000
  • b54881352d * sec_auth.cc (extract_nt_dom_user): Return domain and user name as WCHAR. (cygwin_logon_user): Accommodate above change. Convert password to WCHAR and call LogonUserW. * external.cc (cygwin_internal): Accommodate above change. * security.h (extract_nt_dom_user): Change prototype accordingly. Corinna Vinschen 2008-07-30 12:10:20 +0000
  • 79ea8bbb10 include/opcode/ * ppc.h (PPC_OPCODE_405): Define. (PPC_OPERAND_FSL, PPC_OPERAND_FCR, PPC_OPERAND_UDI): Define. gas/ * config/tc-ppc.c (parse_cpu): Separate handling of -m403/405. (md_show_usage): Likewise. opcodes/ * ppc-dis.c (print_insn_powerpc): Disassemble FSL/FCR/UDI fields. * ppc-opc.c (powerpc_operands): Add Xilinx APU related operands. (insert_sprg, PPC405): Use PPC_OPCODE_405. (powerpc_opcodes): Add Xilinx APU related opcodes. Alan Modra 2008-07-30 06:29:21 +0000
  • e3e942ac00 * Makefile.in: Link cygcheck with -lntdll even without mingw-zlib. Christopher Faylor 2008-07-30 06:07:42 +0000
  • a010e6abed * cygwin.din (_getutline): Remove. * lib/bsdlib.cc (login): Make argument const as per linux. (logout): Ditto. * syscalls.cc (getutid): Ditto. (getutline): Ditto. (pututline): Ditto. (getutxent): Add comment mentioning non-thread-safety. (getutxid): Ditto. (getutxline): Ditto. (pututxline): Ditto. * sys/utmp.h: Declare arguments to various functions as const as per linux. Remove bogus _getutline definition. Christopher Faylor 2008-07-30 04:58:24 +0000
  • dbfc6f0e78 (missing changelog entry) * include/cygwin/version.h: Add comment indicating that current API number bump also has another consequence. Christopher Faylor 2008-07-30 01:37:55 +0000
  • f5b18cbef7 * include/cygwin/version.h: Add comment indicating that current API number bump also has another consequence. Christopher Faylor 2008-07-29 14:07:21 +0000
  • f9afd0ced7 * Makefile.in (DLL_OFILES): Remove v8 regexp files. (OBSOLETE_FUNCTIONS): Remove v8 regexp functions. (NEW_FUNCTIONS): Remove POSIX regex functions. * cygwin.din: Export POSIX regex functions with their correct symbol name. Export with posix_ prefix for backward compatibility. * syscalls.cc (regfree): Remove ancient fake function. * regex/regex.h: Remove renaming regex functions within Cygwin. * regexp/*: Remove. * include /cygwin/version,.h: Bump API minor number. Corinna Vinschen 2008-07-29 10:40:37 +0000
  • f2cb69fd8e Replace __mingw_snprintf() with new generic family implementation; likewise, replace __mingw_vsnprintf(). Keith Marshall 2008-07-28 23:24:20 +0000
  • 8c7a3134dd Lay foundations for new printf() function family implementation. Keith Marshall 2008-07-28 22:57:43 +0000
  • 038af33480 * dcrt0.cc (dll_crt0_0): Remove calling malloc_init and user_shared_initialize_1 from here. (dll_crt0_1): Remove dynamically_loaded check. Just call malloc_init and user_shared_initialize unconditionally. * shared.cc (user_shared_create): Rename from user_shared_initialize. (user_shared_initialize): Rename from user_shared_initialize_1. Move complete user_shared content initialization code here from user_shared_create. * syscalls.cc (seteuid32): Remove call to user_shared_initialize_1. That is implied by the "true" argument to user_shared_create(). Christopher Faylor 2008-07-27 22:31:48 +0000
  • b58e5f427a * mount.cc (mount_info::init): Add location where we're looking for fstab to temporary message. * lib/cygwin_crt0.c (cygwin_crt0): Simplify by eliminating accommodations for ancient cygwin DLLs. * lib/crt0.h: Include <windows.h> directly since it is needed. Christopher Faylor 2008-07-27 16:59:07 +0000
  • 34aa62035b * cygcheck.cc (load_cygwin): Free the cygwin dll after we're done with it. Christopher Faylor 2008-07-27 14:53:42 +0000
  • 904413e731 * shared_info.h (shared_destroy): Declare. * shared.cc (shared_destroy): Define new function to destroy shared memory regions. * init.cc (dll_entry): Call shared_destroy when dll detaches from the process. Christopher Faylor 2008-07-27 14:52:46 +0000
  • bfd2b1c930 * fhandler_socket.cc (fhandler_socket::send_internal): Send never more then 64K bytes at once. For blocking sockets, loop until entire data has been sent or an error occurs. (fhandler_socket::sendto): Drop code which sends on 64K bytes. (fhandler_socket::sendmsg): Ditto. Corinna Vinschen 2008-07-27 10:20:49 +0000
  • 34cc372abe * fhandler_tty.cc (fhandler_pty_master::setup): Reorganize so that all operations for each end of the pipe are grouped together. Christopher Faylor 2008-07-26 19:35:21 +0000
  • d9f2119e32 Support PowerPC single-precision float. Alan Modra 2008-07-26 13:10:47 +0000
  • e643b202e6 * dcrt0.cc (dll_crt0_1): Call malloc_init and user_shared_initialize_1 only in non-dynamically loaded case. Corinna Vinschen 2008-07-26 08:32:28 +0000
  • b73c0b890e 2008-07-25 Bo Yang <techrazy@users.sourceforge.net> Chris Sutcliffe 2008-07-25 22:13:22 +0000
  • b6e1c2af52 2008-07-25 Bo Yang <techrazy@users.sourceforge.net> Chris Sutcliffe 2008-07-25 22:09:36 +0000
  • 2fd104c0a7 * acinclude.m4: Remove libide, libgui, and all the other Tcl functions. * tcl.m4: New file. Keith Seitz 2008-07-25 18:00:17 +0000
  • 1d011c0a68 * dcrt0.cc (dll_crt0_0): Call malloc_init and user_shared_initialize_1 here in case we're dynamically loaded. Explain why. (dll_crt0_1): Call user_shared_initialize_1 from here. * mount.cc (is_native_path): New inline function testing for native and long Win32 path prefix. (is_unc_share): Remove long WIn32 path prefix test. (mount_info::create_root_entry): Use PATH_MAX buffer. (mount_info::init): Ditto. (mount_info::add_item): Test for is_native_path as well. * path.cc (normalize_win32_path): Simplify native path prefix code. * shared.cc (user_shared_initialize_1): New function taking user shared initialization code relying on malloc and cygtls. (user_shared_initialize): Move mountinfo initialization to user_shared_initialize_1. * shared_info.h (user_shared_initialize_1): Declare. * syscalls.cc (seteuid32): Call user_shared_initialize_1 after user changed. Corinna Vinschen 2008-07-25 15:23:56 +0000
  • 5f853b3fc5 * mount.cc: Remove non-unix-like options (-x,-t,b) throughout. (oopts): Use boolean constants for slightly increased clarity. * configure.in: Remove apparently unneeded program_transfer_name code. * configure: Regenerate. Christopher Faylor 2008-07-25 15:03:25 +0000
  • e93f946aa7 * utils.sgml: Remove useless text. Corinna Vinschen 2008-07-25 07:08:56 +0000
  • 9c7041ca01 2008-07-24 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> Chris Sutcliffe 2008-07-25 01:50:35 +0000
  • f42ef1eba7 2008-07-24 techrazy <techrazy@users.sourceforge.net> Chris Sutcliffe 2008-07-25 01:19:11 +0000
  • e0fa82235a * mount.cc (mount_info::from_fstab): Change system_printf to debug_printf on NtOpenFile failure. Corinna Vinschen 2008-07-24 18:32:41 +0000
  • 520fcc9747 * shared.cc (user_shared_initialize): Fetch potentially changed Cygwin username from /etc/passwd before loading mount table. (shared_info::init_installation_root): New function fetching Cygwin's installation root dir and storing as native NT path in global shared memory. (shared_info::initialize): Call init_installation_root exactly once at first startup. * shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Add installation_root member. (shared_info::init_installation_root): Declare. Corinna Vinschen 2008-07-24 18:25:52 +0000
  • 410c1d122d 2008-07-24 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2008-07-24 17:55:26 +0000
  • 854c14daa4 * include/lmaccess.h (struct _USER_INFO_4): Define. (struct _USER_INFO_23): Define. (struct _GROUP_INFO_3): Define. Corinna Vinschen 2008-07-24 09:01:12 +0000
  • f36c78a487 * mkgroup.c (main): Fix test for duplicate domain/machine request. * mkpasswd.c (main): Ditto. Corinna Vinschen 2008-07-23 20:12:12 +0000
  • f9519bcd1a * mkgroup.c: Rework to allow per-domain/per-machine id_offset. Add -b option to skip builtin groups. (main): Simplify code. * mkpasswd.c: Rework to allow per-domain/per-machine id_offset. (main): Simplify code. * utils.sgml: Explain changed mkgroup/mkpasswd -d/-D/-l/-L options. Add mkgroup -b option. Corinna Vinschen 2008-07-23 18:09:50 +0000
  • 0bdab5c8a9 * mkgroup.c: Consolidate variable names. (enum_unix_groups): New function. (print_special): Use LookupAccountSidW instead of LookupAccountSidA. (current_group): Ditto. (usage): Add -U option. (longopts): Add --unix option. (opts): Add -U option. (main): Handle -U option. Call enum_unix_groups if set. * mkpasswd.c: Consolidate variable names. (current_user): Use LookupAccountSidW instead of LookupAccountSidA. (enum_unix_users): New function. (usage): Add -U option. (longopts): Add --unix option. (opts): Add -U option. (main): Handle -U option. Call enum_unix_groups if set. * utils.sgml: Add -U option text to mkgroup and mkpasswd description. Corinna Vinschen 2008-07-23 11:41:10 +0000
  • 02151f07e6 * spawn.cc (spawn_guts): Fix previous patch for UNC paths. Corinna Vinschen 2008-07-23 10:17:04 +0000
  • 7e1fdc9e2c * mkgroup.c (enum_groups): Create full qualified groupname using domain or servername, depending on printing domain or machine accounts. * mkpasswd.c (enum_users): Ditto for users. Corinna Vinschen 2008-07-22 20:47:14 +0000
  • 4aeb44ee37 * mkgroup.c (main): Remove special root group code. Only print SYSTEM group in case of printing local machine or local domain groups. Corinna Vinschen 2008-07-22 20:12:02 +0000
  • 73814f5ee2 Remove erroneous ChangeLog entry. Corinna Vinschen 2008-07-22 17:31:35 +0000
  • 19dc8ba9b2 * spawn.cc (spawn_guts): Remove long path prefix from win32 path before calling CreateProcess if path length is < MAX_PATH. Corinna Vinschen 2008-07-22 16:59:59 +0000
  • a1e1990348 * Makefile.in (cygcheck.exe): Link against ntdll. * bloda.cc: Use statically linked functions throughout. * cygpath.cc: Drop 9x considerations. * mkgroup.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique groupnames in domain\group syntax. Add -S option to define domain\group separator char. Ignore -u and -s options. * mkpasswd.c: Revamp. Redefine -l and -d options to take optional machine and domain parameters. Redefine -c to work always, using token information. Add -L, -D, -C to create unique usernames in domain\user syntax. Add -S option to define domain\user separator char. Ignore -g and -s options. Prefer to take homedir from $HOME over $HOMEDRIVE/$HOMEPATH. * path.cc (oopts): Add "acl", "noacl", "posix=0" and "posix=1" options. (getmntent): Accomodate throughout. * ps.cc: Fix copyright dates. * utils.sgml: Fix text for mkgroup and mkpasswd. Corinna Vinschen 2008-07-22 14:40:05 +0000
  • 737a72dd0e * include/ctype.h: Declare __ctype_ptr__ to keep newlib build happy. Corinna Vinschen 2008-07-22 10:38:18 +0000
  • fa914bf8ab 2008-07-21 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2008-07-21 21:28:34 +0000
  • 0485c2ceec * Makefile.in (cygcheck.exe): Link against ntdll. * bloda.cc: link against ntdll functions statically. * cygpath.cc (get_user_folder): Drop 9x code. (print_version): Fix copyright. * mkgroup.c: Remove 9x code. * mkpasswd.c: Ditto. * path.cc (oopts): Add new mount options. * ps.cc: Fix copyright. Corinna Vinschen 2008-07-21 13:44:42 +0000
  • 191f3bae17 * bfd/elf-bfd.h: Declare elfcore_write_ppc_vsx. * bfd/elf.c (elfcore_grok_ppc_vsx): New function. (elfcore_write_ppc_vsx): New function (elfcore_grok_note): Handle VSX notes. (elfcore_write_register_note): Handle VSX notes. * include/elf/common.h: Define NT_PPC_VSX. * binutils/readelf.c (get_note_type): Handle VSX notes. Luis Machado 2008-07-21 05:33:37 +0000
  • 5a3ed02610 * autoload.cc (WNetGetProviderNameA): Define. (WNetGetResourceParentA): Remove. * fhandler_netdrive.cc (struct net_hdls): New structure to keep WNet handles. Stored in dir->__handle throughout. (thread_netdrive): Rewrite to enumerate all servers in all accessible domains and workgroups. (fhandler_netdrive::readdir): Simplify toplevel code. Lowercase all server names in toplevel. (fhandler_netdrive::rewinddir): Close all WNet handles and free net_hdls structure. Corinna Vinschen 2008-07-19 12:26:09 +0000
  • b47d83c645 2008-07-18 Ken Werner <ken.werner@de.ibm.com> Jeff Johnston 2008-07-18 16:36:22 +0000
  • 8d7e80c2e1 * fhandler.cc (fhandler_base::open): Rename x to fh. On Samba, always create file with NULL security descriptor and set the permissions afterwards. Explain why. Corinna Vinschen 2008-07-18 12:21:22 +0000
  • d83c6a77d2 * cygwinenv.sgml: Move binmode option to list of removed options. Corinna Vinschen 2008-07-18 08:17:28 +0000
  • fd8e5366aa * environ.cc (known): Remove "binmode" option. * fhandler.cc (binmode): Remove. (fhandler_base::set_flags): Accommodate binmode removal. * path.h (path_conv::set_binary): Remove. * pipe.cc (pipe): Create pipes always as binary pipes. * winsup.h (binmode): Remove declaration. Corinna Vinschen 2008-07-18 08:16:40 +0000
  • d2af9effc5 2008-07-17 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2008-07-17 20:56:51 +0000
  • 7f48e8a8b3 2008-07-17 Ken Werner <ken.werner@de.ibm.com> Jeff Johnston 2008-07-17 19:04:26 +0000
  • eb19b8f95a 2008-07-17 Ken Werner <ken.werner@de.ibm.com> Jeff Johnston 2008-07-17 19:00:44 +0000
  • 874149c80c * mount.cc (do_mount): Remove MOUNT_ENC code. (oopts): Remove "managed" option. (mount_commands): Drop "managed" handling. * path.cc (oopts): Remove "managed" option. (getmntent): Remove MOUNT_ENC code. Corinna Vinschen 2008-07-17 15:07:48 +0000
  • 5fc03e3d73 * mount.cc (mount_info::from_fstab_line): Default to binary mount. Corinna Vinschen 2008-07-17 14:14:34 +0000
  • 85f1119b7b * Revamp documentation for Cygwin 1.7, part 1. Corinna Vinschen 2008-07-17 11:49:45 +0000
  • b2dab9e8bc * utils.sgml: Add id's to all examples. Corinna Vinschen 2008-07-17 10:32:03 +0000
  • a0c53f920f * path.cc (allow_winsymlinks): Revert default to create system bit symlinks for speed. Corinna Vinschen 2008-07-16 21:08:22 +0000
  • e4b575030b Add case-sensitivity. Unconditionally handle mount points case-sensitive. Unconditionally handle virtual paths case-sensitive. Unconditionally handle registry paths case-insensitive. Otherwise, accommodate case-sensitivity of given path throughout. * cygheap.cc (cygheap_root::set): Get additional caseinsensitive parameter and store it. * cygheap.h (struct cygheap_root_mount_info): Add member caseinsensitive. * dlfcn.cc (get_full_path_of_dll): Drop PC_NOFULL parameter from call to path_conv::check. * environ.cc (pcheck_case): Remove. (check_case_init): Remove. (known): Drop "check_case" option. * exceptions.cc (open_stackdumpfile): Add comment. * fhandler.cc (fhandler_base::get_default_fmode): Call pathmatch instead of strcasematch. * fhandler_disk_file.cc: Accommodate case-sensitivity of given path throughout. (__DIR_mounts::check_mount): Unconditionally check virtual paths case-sensitive. (fhandler_disk_file::link): Drop case clash handling. (fhandler_disk_file::open): Ditto. (fhandler_disk_file::readdir_helper): Drop managed mount code. * mount.cc: Remove managed mount code and datastructures. (struct opt): Remove "managed" option. Add "posix=0" and "posix=1" options. (fillout_mntent): Remove "managed" output. Add "posix" output. * path.cc (struct symlink_info): Remove case_clash member and case_check method. (pcheck_case): Remove. (path_prefix_p): Take additional bool parameter "caseinsensitive". (pathnmatch): Ditto. (pathmatch): Ditto. (mkrelpath): Ditto. (fs_info::update): Set caseinsensitive flag according to file system name and FILE_CASE_SENSITIVE_SEARCH flag. Add comment. (tfx_chars_managed): Remove. (transform_chars): Drop "managed" parameter. Always use tfx_chars. (get_nt_native_path): Drop "managed" parameter. Make sure drive letters are always upper case. (getfileattr): Change second parameter to denote caseinsensitivity. (path_conv::check): Initialize caseinsensitive to OBJ_CASE_INSENSITIVE. Set caseinsensitive according to global obcaseinsensitive flag, file system case sensitivity and MOUNT_NOPOSIX mount flag. Drop case_clash and all the related code. (symlink_worker): Drop case clash handling. (symlink_info::set): Drop setting case_clash. (symlink_info::case_check): Remove. (cwdstuff::set): Add comment. (etc::init): Take path_conv instead of PUNICODE_STRING as parameter to allow case sensitivity. * path.h (enum pathconv_arg): Drop PC_SYM_IGNORE. (enum case_checking): Remove. (enum path_types): Drop PATH_ENC, add PATH_NOPOSIX flag. (struct fs_info): Add caseinsensitive flag and accessor methods. (class path_conv): Add caseinsensitive member and define objcaseinsensitive method. Drop case_clash member and isencoded method. (pathmatch): Change prototype according to above change. (pathnmatch): Ditto. (path_prefix_p): Ditto. (get_nt_native_path): Ditto. (class etc): Ditto. (fnunmunge): Remove prototype. * shared.cc (shared_info::init_obcaseinsensitive): Initialize obcaseinsensitive flag from obcaseinsensitive registry value. (shared_info::initialize): Call init_obcaseinsensitive here by the first process creating the shared memory. * shared_info.h (mount_item::fnmunge): Remove. (shared_info::obcaseinsensitive): Rename from obcaseinsensitivity. (shared_info::init_obcaseinsensitive): Declare. * syscalls.cc (try_to_bin): Add comment. * include/sys/mount.h (MOUNT_ENC): Remove flag. (MOUNT_NOPOSIX): Add flag. Corinna Vinschen 2008-07-16 20:20:45 +0000
  • bed5a336c4 * cyglsa-config: Always create a /bin/cyglsa directory and copy the LSA DLL there. Register this copy in the registry. Corinna Vinschen 2008-07-16 19:33:54 +0000
  • 80f6f52cb1 * fhandler_tape.cc (mtinfo::initialize): Remove synchronization stuff. Just initialize drive data. * mtinfo.h (MTINFO_MAGIC): Remove. (MTINFO_VERSION): Remove. (class mtinfo): Remove magic and version members. * shared.cc (shared_info::initialize): Move call to get_session_parent_dir so that the dir creation is only called once. Move call to mt.initialize so that it's called only by the first process creating the shared memory. * shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info. (CURR_SHARED_MAGIC): Ditto. (class shared_info): Add obcaseinsensitivity member. Corinna Vinschen 2008-07-15 11:42:45 +0000
  • dc4b5caedc * cyglsa.c: Include ntddk.h again, but only if __MINGW32__ is defined. * cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Fix comment. Corinna Vinschen 2008-07-15 09:43:48 +0000
  • 3e153bcd55 * fhandler.cc (fhandler_base::fpathconf): On _PC_POSIX_PERMISSIONS and _PC_POSIX_SECURITY, return true for NFS, too. Corinna Vinschen 2008-07-14 20:46:27 +0000
  • e2406d71aa Throughout drop allow_ntsec and allow_smbntsec handling. * environ.cc (set_ntsec): Remove. (set_smbntsec): Remove. (known): Remove ntsec and smbntsec options. * external.cc (check_ntsec): Return true if no filename is given. * mount.cc (oopts): Add "acl" and "noacl" options. Set MOUNT_NOACL flag accordingly. (fillout_mntent): Handle MOUNT_NOACL flag. * path.h (enum path_types): Add PATH_NOACL. * security.cc (allow_ntsec): Remove. (allow_smbntsec): Remove. * security.h (allow_ntsec): Drop declaration. (allow_smbntsec): Drop declaration. * include/sys/mount.h (MOUNT_NOACL): Define. Corinna Vinschen 2008-07-14 20:22:03 +0000
  • bf216dcad6 * miscfuncs.cc (cygwin_strncasecmp): Fix bug which results in prematurely truncated strings. Simplify target length argument to sys_mbstowcs. Corinna Vinschen 2008-07-14 19:58:16 +0000
  • 88d1b6df94 * autoload.cc (GetExtendedTcpTable): Define. * fhandler_socket.cc (address_in_use): Take const struct sockaddr pointer as argument. Implement additional AF_INET6 table check. (fhandler_socket::bind): Drop AF_INET test before calling address_in_use. * net.cc (ipv4_getnameinfo): Return EAI_FAMILY instead of 1 if called with unsupported af_family. Corinna Vinschen 2008-07-14 15:56:11 +0000
  • c0bb6b5bd6 * include/iphlpapi.h (GetExtendedTcpTable): Add prototype. * include/iprtrmib.h (TCP_TABLE_CLASS, MIB_TCPROW_OWNER_PID, MIB_TCPTABLE_OWNER_PID, MIB_TCP6ROW_OWNER_PID, MIB_TCP6TABLE_OWNER_PID): Define. * lib/iphlpapi.def (GetExtendedTcpTable): Export. Corinna Vinschen 2008-07-14 15:55:48 +0000
  • 5a0c7f1df9 * cyglsa.c: Don't include ntddk.h. (RtlInitEmptyUnicodeString): Use Visual-C compatible "__inline" instead of "inline". (uni_alloc): Change second argument to USHORT. (printf): Move definition of ap to make Visual-C++ happy. (LsaApLogonUserEx): Compute size of datastructure returned to LSA on 64 bit systems correctly to avoid heap corruption. * cyglsa64.dll: Regenerate. * make-64bit-version-with-visual-c.bat: Accommodate newer Microsoft toolchains. Add more comment. * mslsa.def: Export LsaApLogonUserEx instead of LsaApLogonUser. Corinna Vinschen 2008-07-13 13:14:41 +0000
  • 25dab6dc60 Fix usage of recently fixed Interlocked* functions. Eric Blake 2008-07-12 18:09:17 +0000
  • 5423479e3f Revert my last change since it has not been approved. Jie Zhang 2008-07-12 08:54:12 +0000
  • fb122200f5 bfd/ * elf.c (_bfd_elf_map_sections_to_segments): Don't put executable sections into the same segment with other read only sections if --sep-code. * elf32-bfin.c (elf32_bfin_code_in_l1): New variable. (elf32_bfin_data_in_l1): New variable. (elf32_bfin_final_write_processing): New. (elf32_bfin_special_sections[]): New. (elf_backend_final_write_processing): Define. (elf_backend_special_sections): Define. Jie Zhang 2008-07-11 19:24:39 +0000
  • 84e2d2e6cf * select.cc (peek_pipe): Temporarily revert patch from 2008-05-30. Corinna Vinschen 2008-07-11 16:37:29 +0000
  • 3e29f67f22 * mh-mingw (LDFLAGS): Append to rather than replacing previous value. Joseph Myers 2008-07-11 11:15:59 +0000
  • 824fe06cbe * cyglsa.c (LsaApLogonUserEx): Accommodate the fact that authinf->domain and authinf->username are now of type WCHAR. Change sam_username and sam_u size to be deifned in terms of MAX_DOMAIN_NAME_LEN instead of INTERNET_MAX_HOST_NAME_LENGTH. Corinna Vinschen 2008-07-11 10:00:38 +0000
  • 9a51257715 Change length for domain buffers from INTERNET_MAX_HOST_NAME_LENGTH to MAX_DOMAIN_NAME_LEN throughout. * cyglsa.h (CYG_LSA_MAGIC): New value. (cyglsa_t): Define username and domain as WCHAR arrays. * errno.cc (errmap): Add mapping for ERROR_NONE_MAPPED. * sec_auth.cc: Drop 'w' prefix from WCHAR string variable names where appropriate. (extract_nt_dom_user): Prefer resolving by SID before resolving by domain\name pair. (cygwin_logon_user): Don't print cleartext password in debug output. Change comment. (get_user_groups): Revert calls to LookupAccountNameW to use NULL server instead of explicit server name, according to MSDN. (get_user_local_groups): Ditto. (get_server_groups): Fetch domain and user name from usersid per LookupAccountSidW instead of calling extract_nt_dom_user. (lsaauth): Fetch domain and user name from usersid per LookupAccountSidW instead of calling extract_nt_dom_user. * sec_helper.cc (cygpriv): Convert to wchar_t pointer array. (privilege_luid): Convert first parameter to PWCHAR. (privilege_name): Return wchar_t pointer. (set_privileges): Accommodate debug output. * security.h (privilege_luid): Change prototype accordingly. Corinna Vinschen 2008-07-11 10:00:36 +0000
  • 186a804c15 include/elf/ * mips.h (ELF_ST_IS_MIPS16, ELF_ST_SET_MIPS16): New macros. Richard Sandiford 2008-07-10 19:05:28 +0000
  • ce96cfb292 * cyglsa.c: Revamp debugging output. (LsaApInitializePackage): Open debugging output file here. (LsaApLogonUserEx): Replace LsaApLogonUser. Add debugging output. Create machine name for accounting. Add (disabled) code to fetch a token from GetAuthDataForUser/ConvertAuthDataToToken. * cyglsa.din: Relace LsaApLogonUser with LsaApLogonUserEx. Corinna Vinschen 2008-07-10 18:05:03 +0000
  • c68cb84e88 * cyglsa.h (SECURITY_STRING): Define. (enum _SECPKG_NAME_TYPE): Define. (struct _SECPKG_CALL_INFO): Define. (struct _LSA_SECPKG_FUNCS): Extend to full size. Define unused functions lazily. (cygprf_t): Define. * sec_auth.cc (lsaauth): Use actual primary group if no admins group. Add (disabled) code to fetch token from profil data. Corinna Vinschen 2008-07-10 18:01:25 +0000
  • 9035519215 * sec_auth.cc (verify_token): Allow builtin groups missing in a token and it's still valid. Explain why. Corinna Vinschen 2008-07-09 15:45:08 +0000
  • 375a780e06 * mkgroup.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. (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. Corinna Vinschen 2008-07-09 14:32:29 +0000
  • 5558de95e5 * autoload.cc (DsGetDcNameW): Replace DsGetDcNameA. * 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. Corinna Vinschen 2008-07-09 11:58:38 +0000
  • 8f7208243e * grp.cc (internal_getgroups): Also add integrity-enabled groups. Corinna Vinschen 2008-07-09 09:14:12 +0000
  • 2827371898 * sec_auth.cc (verify_token): Disable code which returns false if the token contains additional groups not requested by setgroups. Explain why. Corinna Vinschen 2008-07-09 08:10:25 +0000
  • 17bfd1e083 2008-07-08 Kenji Tanaka <tanaka.ken2@jp.panasonic.com> Jeff Johnston 2008-07-08 20:36:27 +0000
  • 23672785ee * fhandler_socket.cc (fhandler_socket::bind): Don't run explicit 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. Corinna Vinschen 2008-07-08 20:12:46 +0000
  • b8fbf5d4c4 * net.cc (ipv6_inited): Make NO_COPY. Corinna Vinschen 2008-07-08 12:37:44 +0000
  • dd5e3247eb 2008-07-07 Stan Shebs <stan@codesourcery.com> Stan Shebs 2008-07-07 18:40:13 +0000
  • d68240794e * safe-ctype.h: Add #include of ctype.h before redefining the ctype.h macros. Joel Brobecker 2008-07-07 17:09:31 +0000
  • 2adedff8b3 2008-07-07 Hans-Peter Nilsson <hp@axis.com> Jeff Johnston 2008-07-07 15:51:55 +0000
  • 6f6b4e11cb 2008-07-06 Gregory McGarry <gregorymcgarry@users.sourceforge.net> Danny Smith 2008-07-07 07:58:33 +0000