Commit Graph

  • 07d08883d8 * syscalls.cc (chown_worker): Don't check for ENOSYS. Corinna Vinschen 2001-05-23 08:12:49 +0000
  • 1d0f9ded2e * lib/mapi32.def: Add MAPISendMail. Christopher Faylor 2001-05-22 23:03:25 +0000
  • 1f6e71f348 * include/w32api.h: Update version. * Makefile.in: Ditto. Earnie Boyd 2001-05-22 20:51:47 +0000
  • 43a190430b * signal.cc (sleep): Protect with sigframe. Christopher Faylor 2001-05-22 16:22:36 +0000
  • e7e956a7db * security.cc (get_file_attribute): Don't set errno. Corinna Vinschen 2001-05-22 15:59:37 +0000
  • 44adf66367 * ltcf-cxx.sh (allow_undefined_flag, no_undefined_flag) [aix4*|aix5*]: Prepend blank. Alexandre Oliva 2001-05-22 10:40:29 +0000
  • 7cef8b61c4 * configure.in: Allow --enable-newvfork to turn NEWVFORK on and off. * configure: Regenerate. Christopher Faylor 2001-05-21 19:13:48 +0000
  • f01fb5e796 * include/cygwin/version.h: Bump minor version number. Christopher Faylor 2001-05-21 15:50:36 +0000
  • b62456f42f * winsup.api/mmaptest01.c: Add log output. * winsup.api/mmaptest02.c: Write log output to stdout. * winsup.api/mmaptest03.c: Ditto. Corinna Vinschen 2001-05-21 09:03:38 +0000
  • 60be3f0066 * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh, ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254. Rebuilt a number of subdir/configure scripts to use the new libtool.m4. Alexandre Oliva 2001-05-20 19:02:54 +0000
  • 1b72f36e89 * fhandler_dsp.cc: Reformat to GNU standards. (s_audio): Change to a pointer throughout. (fhandler_dev_dsp::open): Initialize s_audio, if required. Christopher Faylor 2001-05-20 17:31:06 +0000
  • 1fcc912f13 * autoload.cc: Add load statements for `LookupAccountNameW', `LsaClose', `LsaEnumerateAccountRights', `LsaFreeMemory', `LsaOpenPolicy', `LsaQueryInformationPolicy', `NetLocalGroupEnum', `NetLocalGroupGetMembers', `NetServerEnum', `NetUserGetGroups' and `NtCreateToken'. * ntdll.h: Add declaration for `NtCreateToken'. * sec_helper.cc: Add `well_known_local_sid', `well_known_dialup_sid', `well_known_network_sid', `well_known_batch_sid', `well_known_interactive_sid', `well_known_service_sid' and `well_known_authenticated_users_sid'. (cygsid::string): Define as const method. (cygsid::get_sid): Set psid to NO_SID on error. (cygsid::getfromstr): Ditto. (cygsid::getfrompw): Simplify. (cygsid::getfromgr): Check for gr == NULL. (legal_sid_type): Move to security.h. (set_process_privilege): Return -1 on error, otherwise 0 or 1 related to previous privilege setting. * security.cc (extract_nt_dom_user): Remove `static'. (lsa2wchar): New function. (open_local_policy): Ditto. (close_local_policy): Ditto. (get_lsa_srv_inf): Ditto. (get_logon_server): Ditto. (get_logon_server_and_user_domain): Ditto. (get_user_groups): Ditto. (is_group_member): Ditto. (get_user_local_groups): Ditto. (sid_in_token_groups): Ditto. (get_user_primary_group): Ditto. (get_group_sidlist): Ditto. (get_system_priv_list): Ditto. (get_priv_list): Ditto. (get_dacl): Ditto. (create_token): Ditto. (subauth): Return immediately if SE_TCB_NAME can't be assigned. Change all return statements in case of error to jumps to `out' label. Add `out' label to support cleanup. * security.h: Add extern declarations for `well_known_local_sid', `well_known_dialup_sid', `well_known_network_sid', `well_known_batch_sid', `well_known_interactive_sid', `well_known_service_sid' and `well_known_authenticated_users_sid'. Add extern declarations for functions `create_token', `extract_nt_dom_user' and `get_logon_server_and_user_domain'. (class cygsid): Add method `assign'. Change operator= to call new `assign' method. Add `debug_print' method. (class cygsidlist): New class. (legal_sid_type): Moved from sec_helper.cc to here. * spawn.cc (spawn_guts) Revert reversion of previous patch. Call `RevertToSelf' and `ImpersonateLoggedOnUser' instead of `seteuid' again. * syscalls.cc (seteuid): Rearranged. Call `create_token' now when needed. Call `subauth' if `create_token' fails. Try setting token owner and primary group only if token was not explicitely created by `create_token'. * uinfo.cc (internal_getlogin): Try harder to generate correct user information. Especially don't trust return value of `GetUserName'. Corinna Vinschen 2001-05-20 08:10:47 +0000
  • df7cd7fb0c * Makefile.in: Use 'rm -f' when cleaning. Christopher Faylor 2001-05-20 04:25:02 +0000
  • 975d20834f * fork.cc (fork_parent): Move atforkprepare call here. (fork): From here. Christopher Faylor 2001-05-20 01:19:20 +0000
  • 69fb3121ce * autoload.cc: Add missing load statement for `CancelIo'. Corinna Vinschen 2001-05-19 16:36:58 +0000
  • 87f0d5ad99 * grp.cc (read_etc_group): Don't copy mutex on fork. * pwd.cc (read_etc_passwd): Ditto. * autoload.cc (LoadDLLfuncEx): Use LoadDLLprime to initialize DLL specific area. Christopher Faylor 2001-05-19 05:29:00 +0000
  • 0260054a8c * net.cc (wsock_event::wait): Explicitely cancel IO when a signal arrived to avoid data loss. Fallback to blocking IO when canceling fails. Corinna Vinschen 2001-05-18 08:33:33 +0000
  • f6b52c79f5 * include/winnt.h: Define SE_GROUP_LOGON_ID as unsigned to avoid compiler warnings. Corinna Vinschen 2001-05-17 21:13:10 +0000
  • a69eb9099b * include/ntdef.h: Protect definition of OBJECT_ATTRIBUTES against previous definition in include/ntsecapi.h. * include/ntsecapi.h: Vice versa. Corinna Vinschen 2001-05-17 15:16:37 +0000
  • 4293884185 * security.cc (cygwin_set_impersonation_token): Never destroy previous token object. (subauth): Create token source with well defined identifier. Corinna Vinschen 2001-05-17 13:31:45 +0000
  • 990577f0bd Revert accidentally checked in ChangeLog. Corinna Vinschen 2001-05-17 13:28:32 +0000
  • f62a57f574 * cygsuba.c: Create token source with well defined identifier. Corinna Vinschen 2001-05-17 13:26:15 +0000
  • 554504edd2 Add missing ChangeLog entry. Corinna Vinschen 2001-05-17 08:23:47 +0000
  • 1cec72414b * uinfo.cc (uinfo_init): Just set user token to INVALID_HANDLE_VALUE. Token value is already invalid at that point. Corinna Vinschen 2001-05-16 21:53:18 +0000
  • 56921232f6 merge from gcc DJ Delorie 2001-05-16 21:03:31 +0000
  • 3065afdb13 * net.cc (errmap): Add missing mapping from WSAEINTR to EINTR. Corinna Vinschen 2001-05-16 19:40:45 +0000
  • 631af2e6a3 * include/winnt.h: Add defines for group attributes. Add define for SYSTEM_LUID. Add missing types `PTOKEN_DEFAULT_DACL', `PTOKEN_OWNER' and `PTOKEN_PRIMARY_GROUP'. Corinna Vinschen 2001-05-16 16:01:45 +0000
  • 486212579e * sec_helper.cc (legal_sid_type): Fix conditional. Change to inline function. Corinna Vinschen 2001-05-16 07:25:31 +0000
  • d61b1993b3 * autoload.h: Eliminate. * autoload.cc: Pull in autoload.h. Eliminate many macros. Rewrite to avoid necessity of initialization routines. Just use a standard one. (wsock_init): New function. Moved from net.cc. * net.cc (wsock_init): Move to autoload.cc. (wsadata): Make global. * dtable.cc (dtable::build_fhandler): Use more reliable method for checking if net stuff has been loaded. Christopher Faylor 2001-05-16 05:07:51 +0000
  • 2b0a111fcf * fork.cc (fork): Eliminate superfluous call to getuid(). * security.h: New define `NO_SID'. Remove declarations of functions moved to methods into class cygsid. (class cygsid): Declare new methods `getfromstr', `get_sid', `getfrompw', `getfromgr', `get_rid', `get_uid', `get_gid', `string' and new constructors and operators =, == and !=. Declare new global cygsids `well_known_XXX_sid' substituting the corresponding `get_XXX_sid' functions. Remove declarations of these functions. * sec_helper.cc (well_known_admin_sid): New global variable. (well_known_system_sid): Ditto (well_known_creator_owner_sid): Ditto (well_known_world_sid): Ditto (cygsid::string): New method, substituting `convert_sid_to_string_sid'. (cygsid::get_sid): New method, substituting `get_sid'. (cygsid::getfromstr): New method, substituting `convert_string_sid_to_sid'. (cygsid::getfrompw): New method, substituting `get_pw_sid'. (cygsid::getfromgr): New method, substituting `get_gr_sid'. (cygsid::get_id): New method, substituting `get_id_from_sid'. (get_admin_sid): Eliminated. (get_system_sid): Ditto. (get_creator_owner_sid): Ditto. (get_world_sid): Ditto. * grp.cc: Use new cygsid methods and well known sids throughout. * registry.cc: Ditto. * sec_acl.cc: Ditto. * security.cc: Ditto. * shared.cc: Ditto. * syscalls.cc (seteuid): Ditto. Eliminate redundant conditional. * uinfo.cc (internal_getlogin): Ditto. * spawn.cc (spawn_guts) Revert previous patch. Corinna Vinschen 2001-05-15 19:23:31 +0000
  • 75f9ca7b0c Remove definition of EM_MIPS_RS4_BE. The constant was never in active use and is used otherwise by the ABI. Nick Clifton 2001-05-15 12:24:29 +0000
  • 92f998d4e0 Fix MIPS disassembler so that it produces reassemblable code. Nick Clifton 2001-05-15 12:11:12 +0000
  • c7ded13728 * winsup.api/winsup.exp: Force linking all tests against binmode.o. Corinna Vinschen 2001-05-15 10:03:01 +0000
  • de81c0465d * fhandler_socket.cc (fhandler_socket::ioctl): Convert s_addr field to host byte order before comparing with INADDR_LOOPBACK. Corinna Vinschen 2001-05-15 08:42:15 +0000
  • a2cdb048f6 * autoload.cc: Add autoload statements for ws2_32 functions `WSACloseEvent', `WSACreateEvent', `WSAGetOverlappedResult', `WSARecv', `WSARecvFrom', `WSASend', `WSASendTo' and `WSASetEvent', `WSAWaitForMultipleEvents'. * net.cc: Define wsock_evt. (wsock_event): New class. (cygwin_sendto): Use overlapped socket io if available. (cygwin_recvfrom): Ditto. (cygwin_recv): Ditto. (cygwin_send): Ditto. * security.cc (subauth): Set Win32 error to 0 to safely ask for the error code of dynamically loaded function `LsaRegisterLogonProcess'. Corinna Vinschen 2001-05-15 08:15:54 +0000
  • f162ad82fc * Makefile.common: Change method for finding current directory. Christopher Faylor 2001-05-15 05:11:55 +0000
  • 7ede23a128 * errno.cc (_sys_errlist): Add missing commas. Christopher Faylor 2001-05-14 19:39:57 +0000
  • 0f2de875b5 2001-05-14 H.J. Lu <hjl@gnu.org> H.J. Lu 2001-05-14 16:40:49 +0000
  • 5aac6665c7 * security.cc (subauth): Check if Secur32.dll could be loaded. Corinna Vinschen 2001-05-14 14:14:19 +0000
  • df7320e1ba * path.cc (path_conv::check): Revert allow_ntsec check so that volume info is always retrieved and isdisk setting is properly set. Christopher Faylor 2001-05-14 02:52:12 +0000
  • fb1a9f35e1 Fix formatting. Christopher Faylor 2001-05-14 02:49:56 +0000
  • 49a8c92ca3 * fhandler_tty.cc (fhandler_tty_common::dup): Preserve O_NOCTTY when duping a filehandle. Christopher Faylor 2001-05-13 18:05:52 +0000
  • cbedbdd029 * dir.cc (rmdir): Rearrange slightly to allow removing directories even when R/O attribute is set. Corinna Vinschen 2001-05-12 16:24:05 +0000
  • 24a474a4aa Correct cvtps2dq, movdq2q, movq2dq, and movq problems. Alan Modra 2001-05-12 09:52:39 +0000
  • c3a245f5bf * external.cc (fillout_pinfo): Use correct pids. * path.cc (mount_info::conv_to_win32_path): Correct test for whether to include a slash. Christopher Faylor 2001-05-11 21:01:44 +0000
  • 37922e1277 merge from gcc DJ Delorie 2001-05-11 20:22:28 +0000
  • 0b671586c0 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind sections as well. (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO to .gnu.linkonce.t.FOO text section. Jakub Jelinek 2001-05-11 12:36:47 +0000
  • 5bba0cb5a3 * exceptions.cc (handle_exceptions): Don't print message when executing from a cygwin program. Christopher Faylor 2001-05-11 05:11:12 +0000
  • 723190cf71 Christopher Faylor <cgf@redhat.com> * environ.cc (winenv): Always add SYSTEMDRIVE and SYSYEMROOT to win32-style environment if they don't already exist. Christopher Faylor 2001-05-11 03:27:22 +0000
  • ddf72c8f76 remove erroneous header. Christopher Faylor 2001-05-09 20:22:35 +0000
  • cedb00be89 * path.cc (mount_info::conv_to_win32_path): Treat UNC paths the same as paths including `:' or `\'. Christopher Faylor 2001-05-09 18:59:10 +0000
  • cd94b71c1b * fhandler.h (fhandler_termios::echo_erase): Declare new method. * fhandler_termios.cc (fhandler_termios::echo_erase): New method for echoing erase characters. (fhandler_termios::line_edit): Check the echo flag before echoing control characters (from Kazuhiro Fujieda <fujieda@jaist.ac.jp>). Christopher Faylor 2001-05-09 18:53:55 +0000
  • 00b59ce9c9 * include/pthread.h: Remove C++ comment. Christopher Faylor 2001-05-09 14:45:47 +0000
  • 792011508a * cygheap.cc (_cfree): Add regparm attribute. (_crealloc): Ditto. * dcrt0.cc (dll_crt0_1): Default to always checking for executable for now. * dtable.cc (dtable::not_open): Move method. * dtable.h (dtable): Here. * exceptions.cc (ctrl_c_handler): Don't expect process group leader to handle a signal if it doesn't exist. * fhandler.h (fhandler_base): Make openflags protected. * localtime.c (tzsetwall): Check for __CYGWIN__ as well as __WIN32__. * path.cc (path_conv::check): Add some comments. Change strcat to assignment. * lib/_cygwin_S_IEXEC.cc (_cygwin_bob__): Eliminate. * fhandler_tty.cc (fhandler_console::dup): Set controlling terminal if necessary. * fhandler_tty.cc (fhandler_tty_slave::dup): Ditto. Christopher Faylor 2001-05-08 15:16:49 +0000
  • 791cada5a2 merge from gcc DJ Delorie 2001-05-08 14:34:36 +0000
  • c63e9997e6 Fix typo. Christopher Faylor 2001-05-08 14:06:55 +0000
  • ef8b659086 * include/sys/file.h: Revert special X_OK usage. Just make it a constant. Christopher Faylor 2001-05-08 01:36:50 +0000
  • ca60ed4748 * libc/include/sys/stat.h: Revert March 3, Cygwin change. * libc/include/sys/Ditto.h: Ditto. Christopher Faylor 2001-05-08 01:15:06 +0000
  • 8f2e6ee891 merge from gcc DJ Delorie 2001-05-07 16:19:25 +0000
  • c9b76619ac * external.h: Fix typo. * mips.h: Add/Extend many comments with reference to the MIPS ELF64 spec v. 2.4, available at e.g. ftp://oss.sgi.com/pub/linux/mips/doc/ABI/ELF64.ps. (EF_MIPS_UCODE): Define. (EF_MIPS_OPTIONS_FIRST): Define. (EF_MIPS_ARCH_ASE): Define. (EF_MIPS_ARCH_ASE_MDMX): Define. (EF_MIPS_ARCH_ASE_M16): Define. (SHF_MIPS_ADDR): Renamed SHF_MIPS_ADDR32. (SHF_MIPS_STRING): Renamed SHF_MIPS_ADDR64. (SHF_MIPS_NODUPES): Define. (ELF64_MIPS_R_SSYM): New MIPS ELF 64 relocation info access macro. (ELF64_MIPS_R_TYPE3): Likewise. (ELF64_MIPS_R_TYPE2): Likewise. (ELF64_MIPS_R_TYPE): Likewise. (OHW_R10KLDL): Define. Alan Modra 2001-05-07 09:18:52 +0000
  • 68ebd3f6e2 Sun May 6 17:05:00 2001 Robert Collins <rbtcollins@hotmail.com> * thread.h (pthread_cond): New element cond_access to allow atomic broadcasts. * thread.cc (pthread_cond::pthread_cond): Initialise cond_access. (pthread_cond::~pthread_cond): Destroy cond_access. (pthread_cond::Broadcast): Use cond_access. (pthread_cond::Signal): Use cond_access. (pthread_cond_wait): Use cond_access. (pthread_cond_timedwait): Use cond_access. Robert Collins 2001-05-06 22:23:43 +0000
  • 2bfb966544 * string.h (cygwin_strchr): Make 'static inline' so that things will still work when optimized. Christopher Faylor 2001-05-06 16:00:23 +0000
  • 11ba5ef4d1 * exceptions.cc (handle_exceptions): Vastly increase test for exception loop guard variable. Christopher Faylor 2001-05-05 05:07:20 +0000
  • dbc0c5fb59 * configure.in: Fix typo. * configure: Regenerate. Christopher Faylor 2001-05-05 04:18:16 +0000
  • f598d941a8 * exceptions.cc (stack_info): Add some controls. (stack_info::init): Add extra arguments to control method of initialization.. If we have a known good frame, set things up so that this frame is not skipped the first time through. Record whether caller cares about arguments or not. (stack_info::walk): Don't store arguments if they're unwanted. (stackdump): Add isexception parameter for use when called by exception handler. (cygwin_stackdump): Accomodate extra argument to stackdump. (handle_exceptions): Ditto. (sig_handle): Ditto. (interrupt_on_return): Accomodate extra arguments to stack walk initialization. Christopher Faylor 2001-05-05 02:44:36 +0000
  • d7490eaa99 * localtime.c: Revert exclusion of windows.h. Christopher Faylor 2001-05-05 01:07:03 +0000
  • 1ca62f42d0 oops. Christopher Faylor 2001-05-04 21:09:47 +0000
  • 6731c77ee2 * string.h: Fix last-minute typo. Christopher Faylor 2001-05-04 21:06:13 +0000
  • 63b61cd19f Revert much of previous erroneous checkin. Add ChangeLog entry. Christopher Faylor 2001-05-04 21:02:15 +0000
  • 17743fbc49 * exceptions.cc (ctrl_c_handler): Always send signal to process if it has no tty. Christopher Faylor 2001-05-04 20:39:38 +0000
  • 8b3bcfbab9 2001-05-04 Earnie Boyd <earnie@users.sourceforge.net> Jeff Johnston 2001-05-04 17:23:18 +0000
  • 69b218bf24 * fhandler_socket.cc (set_connect_secret): Use /dev/urandom to generate secret cookie. Egor Duda 2001-05-04 16:30:18 +0000
  • a1ad23671c * configure.in: Make subauth configuration optional. * configure: Regenerate. Christopher Faylor 2001-05-04 15:27:56 +0000
  • af16358f88 Initial release of the Cygwin subauthentication DLL. * ChangeLog: New file. * Makefile.in: Ditto. * configure: Ditto. Generated from configure.in. * configure.in: Ditto. * cygsuba.c: Ditto. * cygsuba.din: Ditto. Corinna Vinschen 2001-05-04 13:19:37 +0000
  • 3c1fb7ac9d * subauth: New subdirectory. * configure.in: Add subauth to the list of subdirectories. * configure: Regenerated from configure.in. Corinna Vinschen 2001-05-04 13:18:51 +0000
  • 268fad77db Assorted fixes to pinsrw, pextrw, pmovmskb, movmskp, maskmovq. Alan Modra 2001-05-04 11:10:53 +0000
  • 620dd06d15 * include/pthread.h (pthread_cleanup_push): Eliminate space preceding arguments. (pthread_cleanup_pop): Ditto. Christopher Faylor 2001-05-03 20:42:28 +0000
  • 13c45b304c * configure.in (noconfigdirs) [*-cygwin*, *-mingw*, *-beos]: Disable libgcj. Alexandre Oliva 2001-05-03 20:31:54 +0000
  • 6c22ecdd32 * net.cc (wsock_init): Rename `was_in_progress' to `wsock_started' for clearness. Corinna Vinschen 2001-05-03 16:18:51 +0000
  • 70c7f359b1 * exceptions.cc (handle_exceptions): Break out of "loop" if the debugger doesn't seem to be attaching to our process. Christopher Faylor 2001-05-03 15:00:38 +0000
  • a6a0193b2f * autoload.cc: Use new definition of LoadDLLinitfunc throughout. Redefine wrapper for wsock32.dll and ws2_32.dll. (std_dll_init): New function. * autoload.h: Rename LoadDLLinitfunc to LoadDLLinitfuncdef. Add new defines LoadDLLinitfunc and LoadDLLstdfunc. * net.cc (wsock_init): Add guard variable handling. Take care to call WSAStartup only once. Load WSAStartup without using autoload wrapper to eliminate recursion. Eliminate FIONBIO and srandom stuff. Corinna Vinschen 2001-05-03 09:35:08 +0000
  • b09e3cf8fd 2001-05-01 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2001-05-01 18:18:25 +0000
  • edcd155ce6 * mkpasswd.c (enum_users): Use /bin/bash as the default shell. (main): Ditto. Christopher Faylor 2001-05-01 14:50:54 +0000
  • 4c265f4ab9 * path.cc (mount_info::conv_to_win32_path): More path tweaking. Christopher Faylor 2001-05-01 05:26:06 +0000
  • beab320f33 * path.cc (mount_info::conv_to_win32_path): Fix debugging output to avoid a SIGSEGV. Avoid double backslashes in middle of filename. Christopher Faylor 2001-05-01 04:45:19 +0000
  • d3c7e9de28 * path.cc (mkrelpath): New function. (mount_info::conv_to_win32_path): Eliminate now-unneeded relative path name arg and processing. (path_conv::check): Accomodate relative path names again. Accomodate one extra argument in mount_info::conv_to_win32_path. Tack trailing slash on end of relative path as a side effect, like before. * shared_info.h (mount_info::conv_to_win32_path): Reflect new argument ordering. Christopher Faylor 2001-05-01 02:03:10 +0000
  • 57ff940dd4 * autoload.cc: Add LoadDLLinitfunc for secur32.dll. Add LoadDLLfuncEx statements for AllocateLocallyUniqueId@4, DuplicateTokenEx@24, LsaNtStatusToWinError@4, LsaDeregisterLogonProcess@4, LsaFreeReturnBuffer@4, LsaLogonUser@56, LsaLookupAuthenticationPackage@12, LsaRegisterLogonProcess@12, * environ.cc: Add extern declaration for `subauth_id'. (subauth_id_init): New function for setting `subauth_id'. (struct parse_thing): Add entry for `subauth_id'. * fork.cc (fork_parent): Call `RevertToSelf' and `ImpersonateLoggedOnUser' instead of `seteuid'. * security.cc: Define global variable `subauth_id'. (extract_nt_dom_user): New function. (cygwin_logon_user): Call `extract_nt_dom_user' now. (str2lsa): New static function. (str2buf2lsa): Ditto. (str2buf2uni): Ditto. (subauth): Ditto. * security.h: Add prototype for `subauth'. * spawn.cc (spawn_guts): Use cygheap->user.token only if impersonated. Use `cygsid' type. Remove impersonation before allowing access to workstation/desktop to everyone. Call `RevertToSelf' and `ImpersonateLoggedOnUser' instead of `seteuid'. * syscalls.cc (seteuid): Rearranged to allow using subauthentication to retrieve user tokens when needed. Corinna Vinschen 2001-04-30 21:19:42 +0000
  • 965cecdfca * uinfo.cc (internal_getlogin): Formatting change. Corinna Vinschen 2001-04-30 18:27:24 +0000
  • 17db110558 * grp.cc: Eliminate MAX_DOMAIN_NAME define. (read_etc_group): Substitute MAX_DOMAIN_NAME by INTERNET_MAX_HOST_NAME_LENGTH. * passwd.cc (parse_pwd): Don't force pw_name to be lower case. * sec_helper.cc: Substitute MAX_USER_NAME by UNLEN, MAX_COMPUTERNAME_LENGTH by INTERNET_MAX_HOST_NAME_LENGTH throughout. (lookup_name): Slight cleanup. * security.cc (alloc_sd): Substitute MAX_USER_NAME by UNLEN. * security.h: Define DEFAULT_UID as DOMAIN_USER_RID_ADMIN and DEFAULT_GID as DOMAIN_ALIAS_RID_ADMINS. * shared.cc (memory_init): Substitute MAX_USER_NAME by UNLEN. * thread.h: Ditto. * uinfo.cc (internal_getlogin): Substitute MAX_USER_NAME by UNLEN. Substitute MAX_COMPUTERNAME_LENGTH and MAX_HOST_NAME by INTERNET_MAX_HOST_NAME_LENGTH. * winsup.h: Include lmcons.h. Eliminate MAX_USER_NAME and MAX_HOST_NAME. Move DEFAULT_UID and DEFAULT_GID to security.h. Corinna Vinschen 2001-04-30 18:21:48 +0000
  • c0a45b92cc * path.cc (path_conv::check): Don't use path_flags when converting to MS-DOS syntax unless parsing tail of path component. Stop parsing path when we reach the 'root' of the path. Correctly copy tail to path component. Christopher Faylor 2001-04-30 16:52:53 +0000
  • 8abeff1ead * exceptions.cc (INIT_EXCEPTION_HANDLER): Eliminate. (init_exceptions): Just use init_exception_handler. (open_stackdumpfile): New function. (stack_info::first_time): Eliminate. (stack_info::init): Set up fields to avoid "first_time" consideration. (stack_info::walk): Remove "first_time" consideration. (stackdump): Change arguments to accept initial frame pointer and open stack file flag. (stack): Eliminate. (cygwin_stackdump): Use stackdump() rather than stack(). (try_to_debug): Remove all synchronization logic. Just keep looping in exception handler until debugger notices us. Return 1 if successfully started debugger. (handle_exceptions): Just return if we know that we're debugging. Reorganize to avoid creating a stackdump file if we are starting a debugger. Return from exception handler if debugger started successfully. (sig_handle): Create a stackdump only if debugger wasn't started. * winsup.h (try_to_debug): Add an argument. Christopher Faylor 2001-04-30 03:09:19 +0000
  • 2b5803d4b7 * path.cc (symlink_info::check): Remove extra arguments, move functionality back to path_conv::check. Clear symlink bit from pflags argument before detecting if this is a symlink. (path_conv::check): Convert posix path here instead of symlink_info::check. Only grab volflags when using ntsec. (symlink_info::check_case): Just replace appropriate part of input path. Christopher Faylor 2001-04-30 01:46:31 +0000
  • f5c1d23103 minor formatting changes. Christopher Faylor 2001-04-29 02:54:36 +0000
  • 64c41c76ff * passwd.cc (ttymnam): New function. (main): Use ttynam() to report name of tty. Christopher Faylor 2001-04-29 02:32:18 +0000
  • b98ebf5470 Throughout, change 'tty_attached' to 'real_tty_attached', for clarity. Throughout, change 'OutputStopped' to 'output_stopped', for consistency. * dtable.cc (stdio_init): Set controlling tty if not set by stdio opens. * exceptions.cc (ctrl_c_handler): Avoid special pgid checking if no tty is associated with the process. (Suggested by Tim Baker <dbaker@direct.ca>) * external.cc (fillout_pinfo): Return actual tty number for ctty. * fhandler_console.cc (get_tty_stuff): Set ctty when shared memory is allocated. Accept flags input from open(). (set_console_ctty): New function. (fhandler_console::open): Pass flags to get_tty_stuff and rely on this function to set the ctty, if appropriate. * fhandler_termios.cc (fhandler_termios::set_ctty): Move to tty_min class. * fhandler_tty.cc (fhandler_tty_slave::open): Use tc field to access set_ctty(). * tty.h (TTY_CONSOLE): Move to include/sys/cygwin.h. (tty_min): Add set_ctty class here. * include/sys/cygwin.h (TTY_CONSOLE): New home here. * path.cc (symlink_info): Make contents an actual buffer. Pass more flags to case_check. (path_conv::check): Reorganize to do parsing based on posix path rather than native path. (symlink_info::check): Expect posix path as input. Translate to native path here. Accept path_conv flags. Stop parsing if not a symlink regardless of whether previous path was a symlink. Christopher Faylor 2001-04-28 23:48:28 +0000
  • 0ca6697493 2001-04-27 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2001-04-27 21:59:44 +0000
  • 7cb7017ae0 2001-04-27 Jeff Johnston <jjohnstn@redhat.com> Jeff Johnston 2001-04-27 20:43:42 +0000
  • cba63823f8 * thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent structure of newlib. * sigproc.h (sig_send): Add exception parameter to sig_send. * sigproc.cc (sig_send): Ditto. Use it when setting frame info. * exceptions.cc (handle_exceptions): Use exception flag when calling sig_send. Christopher Faylor 2001-04-27 18:50:59 +0000
  • 9572ecf979 Add openRISC support in opcodes Nick Clifton 2001-04-27 13:33:26 +0000
  • 19fd2ce8a4 * winsup.api/mmaptest04.c: Take care for binmode explicitely. Corinna Vinschen 2001-04-27 10:46:49 +0000