summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
...
* * mkvers.sh: Fix problem with handling of CVS tags causing .rc syntax errors.Christopher Faylor2000-06-202-1/+9
|
* * Makefile.in: Change to build the DLL during a cross-compiler build.Christopher Faylor2000-06-202-5/+7
|
* * select.cc (socket_cleanup): Shutdown I/O on dummy sockets prior to closingChristopher Faylor2000-06-202-0/+7
| | | | them.
* * dcrt0.cc: Add load statements for `GetSidIdentifierAuthority'Corinna Vinschen2000-06-198-76/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and `RegLoadKeyA'. * registry.cc (get_registry_hive_path): New function. (load_registry_hive): Ditto. * security.cc (convert_sid_to_string_sid): New function. (get_ssid): Renamed to `convert_string_sid_to_sid'. (get_pw_sid): Call `convert_string_sid_to_sid' instead of `get_ssid'. (get_gr_sid): Ditto. (get_admin_sid): Ditto. (get_system_sid): Ditto. (get_creator_owner_sid): Ditto. (get_world_sid): Ditto. * shared.h: New prototypes for `get_registry_hive_path' and `load_registry_hive'. * spawn.cc (spawn_guts): Set child->psid to NULL to force calling `internal_getlogin' from child process in case of changing user context. Call `load_registry_hive' in case of changing user context. (_spawnve): Copy user infos only if user context remains the same. * uinfo.cc: Add load statement for `NetUserGetInfo'. Remove load statement for `NetGetDCName'. (internal_getlogin): Rewrite to speed up process startup and to correct user environment in case user context changes. (uinfo_init): Call internal_getlogin only if myself->psid is NULL, that is user context changes. * winsup.h: Add prototypes for `convert_sid_to_string_sid', `convert_string_sid_to_sid' and `get_pw_sid'.
* * fhandler.h (set_name): Don't use 'unix' as name since this is defined by gccChristopher Faylor2000-06-183-6/+13
| | | | | now. * fhandler.cc (set_name): Ditto.
* * winsup.h (isabspath): Don't report `C:foo' as an absolute path.Christopher Faylor2000-06-172-1/+5
|
* * configure.in: Detect "cross-hosting" situation and set appropriate variablesChristopher Faylor2000-06-174-56/+100
| | | | | | in Makefile to avoid building excess stuff. * configure: Regenerate. * Makefile.in: Accomodate above change.
* * pinfo.cc (pinfo_init): Revert previous patch.Corinna Vinschen2000-06-172-2/+4
|
* * pinfo.cc (pinfo_init): Add missing initializers.Corinna Vinschen2000-06-173-29/+32
| | | | | * uinfo.cc (internal_getlogin): Request domain infos only when ntsec is ON.
* * Makefile.in: Just use library files from this tree when building cygrun.exe.Christopher Faylor2000-06-163-11/+13
| | | | | * path.cc (chdir): Don't set cache to offending chdir. Change comment to reflect current reality.
* * cygwin.din: Define symbols for `cygwin_logon_user' andCorinna Vinschen2000-06-1611-36/+233
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `cygwin_set_impersonation_token'. * dcrt0.cc (dll_crt0_1): Eliminate superfluous conditional statements. Add load statements for `ImpersonateLoggedOnUser', `LogonUserA' and `RevertToSelf'. * fork.cc (fork): Care for correct impersonation of parent and child process. * security.cc (cygwin_set_impersonation_token): New function. (cygwin_logon_user): Ditto. shared.h (class pinfo): New members `orig_uid', `orig_gid', `real_uid' nad `real_gid'. spawn.cc (spawn_guts): Care for impersonation when starting child process in a different user context. * syscalls.cc (setgid): Call `setegid' now. Set real_gid. (setuid): Call `seteuid' now. Set real_uid. (seteuid): Functionality moved from setuid to here. Care for correct impersonation. (setegid): Functionality moved from setgid to here. * uinfo.cc (uinfo_init): Initialization of additional pinfo members. (getuid): Return real uid. (getgid): Return real gid. (geteuid): Return effective uid. (getegid): Return effective gid. include/sys/cygwin.h: Add prototypes for `cygwin_logon_user' and `cygwin_set_impersonation_token'. include/cygwin/version.h: Bumb API minor version to 22.
* * path.cc (chdir): Don't set cache to offending chdir. Change comment toChristopher Faylor2000-06-152-8/+15
| | | | reflect current reality.
* Fix typo.Christopher Faylor2000-06-151-1/+1
|
* * path.cc (normalize_posix_path): Convert path to POSIX if it seems to be aChristopher Faylor2000-06-152-19/+46
| | | | Windows path.
* * environ.cc (conv_envvars): Detect and convert all environment variables usedChristopher Faylor2000-06-152-0/+9
| | | | by libiberty's choose-temp.c
* * path.cc (mount_info::add_item): The previous patch can't handle the case ofChristopher Faylor2000-06-132-6/+13
| | | | overwriting a mount entry.
* * thread.h: Shorten "current_directory" variables to "cwd_*" throughout.Christopher Faylor2000-06-133-62/+69
| | | | | | | * path.cc: Ditto. (normalize_posix_path): Add some extra debugging info. (chdir): Ditto. Store chdir'ed posix and MS-DOS directory names in "cache" here rather than trying to derive them later.
* * fhandler_random.cc (read): Call CryptAquireContext withCorinna Vinschen2000-06-112-2/+8
| | | | CRYPT_VERIFYCONTEXT.
* * path.cc (path_conv::check): Erase two lines checked inCorinna Vinschen2000-06-082-2/+5
| | | | by mistake.
* * fhandler.cc (fhandler_disk_file::open): Check for directoryCorinna Vinschen2000-06-082-2/+11
| | | | to set O_DIROPEN on directories anyway.
* path.cc (mount_info::init): Eliminate the mount_slash feature.Corinna Vinschen2000-06-083-141/+88
| | | | | | | | | | | | | | | | | (mount_slash): Eliminated. (mount_info::read_mounts): Eliminate looking up existing entries. The loop for deleting cygpath entries is done only when such entries exist. (mount_info::from_registry): Eliminate sorting. (mount_info::add_item): Call add_reg_mount if necessary. Check nmounts more precisely. Use strcasematch in looking up existing entries. (mount_info::del_item): Call del_reg_mount if necessary. Use strcasematch. Use memmove instead of memcpy. (mount_info::import_v1_registry): Everything is done in this method. (mount_info::to_registry): Eliminated. (mount_info::from_v1_registry): Eliminated. (cygwin_umount): Simply call del_item. shared.h: Modify the declaration of add_item and del_item. Remove the declaration of from_v1_registry.
* * include/cygwin/version.h: Bump DLL minor version number to 3.Christopher Faylor2000-06-082-1/+5
|
* * cygwin.din: add cygwin_dll_initDJ Delorie2000-06-084-0/+55
| | | | | | * dcrt0.cc (cygwin_dll_init): new (dll_crt0_1): short circuit if manually loaded * path.cc (mount_info::init): don't init if manually loaded
* * include/netinet/in_systm.h: New file.Corinna Vinschen2000-06-073-0/+45
| | | | * include/cygwin/in_systm.h: Ditto.
* * exceptions.cc: Remove unneeded include.Christopher Faylor2000-06-017-27/+40
| | | | | | * dcrt0.cc: Wrap LoadDLLfunc stuff in dummy function. * init.cc: Ditto. * uinfo.cc: Ditto.
* * autoload.h: Put each info block in its own dummy static function.Christopher Faylor2000-06-012-1/+11
|
* * include/cygwin/version.h: use decimal, NOT octalDJ Delorie2000-05-312-2/+8
|
* * fhandler.cc (fhandler_disk_file::open): Check for executableCorinna Vinschen2000-05-312-2/+8
| | | | even if ntsec is on if filesystem doesn't support ACLs.
* * dcrt0.cc: Use LoadDLLfuncEx for loading Crypto API functionsCorinna Vinschen2000-05-312-5/+10
| | | | with parameter `notimp' set to 1.
* * path.cc (mount_info::conv_to_win32_path): Previous patch was too aggressiveChristopher Faylor2000-05-302-5/+12
| | | | in adding a trailing slash.
* Needed for previous changes.Christopher Faylor2000-05-301-0/+2
|
* * Makefile.in: Remove libadvapi32.a.Christopher Faylor2000-05-3011-130/+240
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * autoload.h: Add additional field to autoload block for handling unimplemented functions. (LoadDLLfuncEx): New function which accepts additional parameter for controlling unimplemented function behavior. (LoadDLLfunc): Use LoadDLLfuncEx. * dcrt0.cc: Use new arguments for LoadDLLfunc. Add advapi32 routines. (noload): Rewrite in assembler. Handle new unimplemented function type. * exceptions.cc: Eliminate another vestige of StackWalk stuff. * net.cc: Use new arguments for LoadDLLfunc. * uinfo.cc: Ditto. * config.h.in: Remove obsolete define. * path.h (isdrive): New macro. * dcrt0.cc (globify): Use new macro to determine if a string refers to an MS-DOS drive. * environ.cc (winenv): Ditto. * spawn.cc (find_exec): Ditto. * path.cc (get_raw_device_number): Ditto. (mount_info::conv_to_posix_path): Ditto. (chdir): Ditto. (cygwin_posix_path_list_p): Ditto. (cygwin_split_path): Ditto. (path_conv::check): Move tmp_buf to beginning of function since it can be used earlier in the loop. Use tmp_buf rather than 'root' to hold root information. (mount_info::conv_to_win32_path): Add trailing slash to end of mount path when it translates to a drive. Add defensive code to avoid writing beyond the end of 'dst'.
* * fhandler_random.cc (read): Use CRYPT_MACHINE_KEYSET inCorinna Vinschen2000-05-272-4/+10
| | | | | call to CryptAcquireContext() to serve users that did not log in interactively.
* * errno.cc (errmap): Map ERROR_BAD_NET_NAME to errno ENOSHARE.Corinna Vinschen2000-05-262-0/+5
|
* * sigproc.h (sigframe::set): Accept a default frame pointer.Christopher Faylor2000-05-263-4/+12
| | | | * sigproc.cc (sig_send): Use passed in frame pointer, if appropriate.
* * dir.cc (rmdir): Use file attributes that have already been discovered byChristopher Faylor2000-05-252-2/+3
| | | | path_conv.
* * dir.cc (rmdir): Use file attributes that have already been discoveredChristopher Faylor2000-05-252-2/+2
| | | | by path_conv.
* * dir.cc (rmdir): Use file attributes that have already been discovered byChristopher Faylor2000-05-252-3/+7
| | | | path_conv.
* Patch by Kazuhiro Fujieda <fujieda@jaist.ac.jp>:Corinna Vinschen2000-05-252-1/+6
| | | | * dir.cc (rmdir): Correct the manner in checking the target directory.
* * dir.cc (writable_directory): Comment out previous code,Corinna Vinschen2000-05-244-7/+34
| | | | | | | | | | return always 1 for now. (mkdir): Call set_file_attribute explicitely with S_IFDIR mode bit. * syscalls.cc (chown_worker): Ditto. (chmod): Ditto. * security.cc (get_nt_attribute): Fix error in debug output. Never set FILE_DELETE_CHILD for files. Construct appropriate inherit attribute according to file type.
* * syscalls.cc (_cygwin_istext_for_stdio): New, for newlibDJ Delorie2000-05-233-2/+62
| | | | | * include/cygwin/version.h: Bump API number for detect old programs using old getc/putc macros
* * dir.cc (writable_directory): handle root directoriesDJ Delorie2000-05-232-0/+8
|
* * uname.cc (uname): Use a "s" to denote a snapshot to avoid confusion with theChristopher Faylor2000-05-232-1/+6
| | | | number "5".
* * path.cc (mount_info::conv_to_posix_path): Avoid putting a trailing slash on aChristopher Faylor2000-05-234-27/+48
| | | | | | | | | | | | | directory name when the ms-dos path spec is a root directory of a device. * registry.cc (reg_key::build_reg): Set 'key_is_invalid' flag rather than using an INVALID_HANDLE_KEY. (reg_key::get_int): Test for key validity before performing registry operations. (reg_key::set_int): Ditto. (reg_key::get_string): Ditto. (reg_key::set_string): Ditto. (reg_key::kill): Ditto. (reg_key::~reg_key): Ditto.
* * mkvers.sh: Use snapshot date as build date since it is more interesting.Christopher Faylor2000-05-233-6/+23
| | | | | * uname.cc (uname): Detect if this is a snapshot build and add an "S" to the version number. Report the snapshot date as the release date.
* * environ.cc (regopt): Scan HKLM if HKCU scan fails.Christopher Faylor2000-05-222-0/+10
|
* * dir.cc (rmdir): Care for misleading error messagesCorinna Vinschen2000-05-223-8/+26
| | | | | | | when trying to remove a directory on a samba share. Eliminate superfluous else branch. * syscalls.cc (_rename): Additional check for ERROR_FILE_EXISTS if MoveFile fails.
* * dcrt0.cc (dll_crt0_1): Move uinfo_init call to before sigproc_init to avoid aChristopher Faylor2000-05-223-16/+18
| | | | | | | race. (noload): Add an extra argument for debugging. * uinfo.cc (uinfo_init): Eliminate test for multiple calls. (getlogin): Assume that uinfo_init has already been called.
* * exceptions.cc (interruptible): Add an argument to control whether functionChristopher Faylor2000-05-202-37/+67
| | | | | | just checks for validity. Flag module handle == 0 as noninterrupible. (call_handler): Always acquire and release ebp lock. Loop for only a fixed amount of time attempting to grab mutos and find an interruptible PC.
* * syscalls.cc (setmode): change mode of any matching FILE* also.DJ Delorie2000-05-192-0/+26
|