summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler.cc (fhandler_disk_file::open): Check for allow_ntsecCorinna Vinschen2000-04-255-149/+121
| | | | | | | | | | | | | when determining exec flag. * path.cc (symlink_info::check): Remove call to get_file_attribute(). * security.cc (read_sd): Rename, ditto for variables to conform to common naming convention. Use GetFileSecurity() instead of BackupRead() to avoid permission problems when reading ACLs. (write_sd): Same renaming as for read_sd(). (alloc_sd): Change default permissions according to Linux permissions for group and world when write permission is set. * syscalls.cc (stat_worker): Avoid different permission problems when requesting file informations.
* Forgot ChangeLogCorinna Vinschen2000-04-251-0/+4
|
* * net.cc: Avoid a warning in declaration inet_network.Corinna Vinschen2000-04-251-1/+1
|
* * fhandler_console.cc (fhandler_console::read): Detect extended keycodeChristopher Faylor2000-04-242-1/+6
| | | | information for Windows 9x so that function keys will work correctly.
* * net.cc (cygwin_inet_network): new function.DJ Delorie2000-04-243-0/+18
| | | | * cygwin.din (inet_network): new export
* Fix handling of /.filenameChristopher Faylor2000-04-212-2/+6
|
* * path.cc (normalize_posix_path): Previous two patches were still incorrect soChristopher Faylor2000-04-212-57/+57
| | | | | | rewrite this function to deal with trailing dots. (mount_info::conv_to_win32_path): Just check for '/' where appropriate. Eliminate nofinalslash call since it is handled in normalize_posix_path now.
* * exceptions.cc (handle_exceptions): Search further for stack info toChristopher Faylor2000-04-202-1/+6
| | | | accomodate Windows 95.
* * path.cc (normalize_posix_path): Previous change failed to take rootChristopher Faylor2000-04-202-2/+7
| | | | access into account.
* * syscalls.cc (_link): Check new link path for trailing dot.Corinna Vinschen2000-04-202-7/+13
|
* * fhandler.h (fhandler_base::hclose): New virtual method.Christopher Faylor2000-04-204-21/+34
| | | | | | | (fhandler_base::set_inheritance): Make this a method so that we can use the appropriate close methods. * fhandler.cc (fhandler_base::set_inheritance): Ditto. * path.cc (normalize_posix_path): Eliminate /. trailing path component.
* * syscalls.cc (setuid): Allow switching user context afterCorinna Vinschen2000-04-192-12/+58
| | | | | | | successful call to ImpersonateLogedOnUser (NT only). (setgid): Ditto. (seteuid): Call setuid. (setegid): Call setgid.
* * uinfo.cc (internal_getlogin): Use NetGetDCName() insteadCorinna Vinschen2000-04-192-4/+9
| | | | of NetGetAnyDCName().
* * syscalls.cc (_rename): Try MoveFile() at first beforeDJ Delorie2000-04-192-25/+32
| | | | MoveFileEx(..., MOVEFILE_REPLACE_EXISTING).
* clean up SGML for latest version of jade/docbookDJ Delorie2000-04-192-4/+15
|
* * dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS pathChristopher Faylor2000-04-182-5/+3
| | | | spec, even within a quoted string.
* * dcrt0.cc (globify): Don't use \ quoting when apparently quoting a DOS pathChristopher Faylor2000-04-182-1/+12
| | | | spec.
* Remove obsolete setting.Christopher Faylor2000-04-161-4/+0
|
* * init.cc (dll_entry): Use better check for determining when to set threadChristopher Faylor2000-04-163-3/+13
| | | | | | specific stuff. * syscalls.cc (_unlink): Continue with chmod'ing file even if DELETE_ON_CLOSE succeeds, if file still exists.
* * fhandler_console.cc (keytable): Add support for keypad 5 key, which MS seemsChristopher Faylor2000-04-154-10/+14
| | | | | | to think is equivalent to VK_CLEAR. * debug.cc (thread_stub): Eliminate initialization of reent stuff. * init.cc (dll_entry): Move it here.
* * dcrt0.cc (insert_file): Avoid freeing previously allocated argument list.Christopher Faylor2000-04-135-69/+83
| | | | | | | | | | * path.cc (symlink_info::check): Rename from symlink_check_one. Use new symlink_info struct for communication. (path_conv::path_conv): Use symlink_info structure for communication with symlink_info::check. Fix typo which resulted in symbolic links always being resolved. (readlink): Use stat_suffixes array when resolving a link. * syscalls.cc (stat_suffixes): Make global.
* * include/cygwin/version.h: Bump minor api to reflect export change.Corinna Vinschen2000-04-132-1/+6
|
* * cygwin.din: Add symbol for `lacl'.Corinna Vinschen2000-04-134-5/+37
| | | | | | | | | * security.cc (ReadSD): Add debug output. (acl_worker): New static function. (acl): Call acl_worker now. (lacl): New function. (facl): Call acl_worker now. * include/cygwin/acl.h: Add prototype for `lacl'.
* * path.cc (conv_to_win32_path): Detect a win32 pathCorinna Vinschen2000-04-131-4/+24
| | | | if path contains backslashes.
* Fix typo.Christopher Faylor2000-04-131-4/+3
|
* * path.cc (path_conv::path_conv): Ensure that suffix is correctly copied toChristopher Faylor2000-04-122-18/+24
| | | | path when we've found a symlink but aren't following symlinks.
* Add a debugging line.Christopher Faylor2000-04-111-0/+1
|
* * fhandler.cc (fhandler_disk_file::fstat): Allocate enough space for root dirChristopher Faylor2000-04-082-2/+8
| | | | determination or overflow an array.
* * exceptions.cc (sigsave): Copy on fork so that we can restore correct behaviorChristopher Faylor2000-04-086-38/+64
| | | | | | | | | | | | | in forked process. (interruptible): Flag as interruptible when running in main process module. (interrupt_setup): Save return address and address of return address. (signal_fixup_after_fork): New function. Uses above two values to restore proper behavior to forked process. (interrupt_on_return): Pass return address address to interupt_setup. (interrupt_now): Pass NULL for return address address to interrupt_setup. * fork.cc (fork): Call signal_fixup_after_fork. * shared.h: Lint cleanups. * winsup.h: Ditto.
* Bump minor version.Christopher Faylor2000-04-071-1/+1
|
* * fhandler.h (select_stuff): Eliminate use of 'total'.Christopher Faylor2000-04-033-7/+11
| | | | | | * select.cc (cygwin_select): Ditto. (select_stuff::wait): Use maximum size for w4 rather than calculating what will fit.
* * grp.cc (parse_grp): Save empty array instead ofCorinna Vinschen2000-04-032-1/+6
| | | | NULL in gr_mem if no supplementary group is given.
* * newlib/libc/include/sys/unistd.h: Add prototypes forCorinna Vinschen2000-04-024-18/+88
| | | | | | | | | | | | | | fchmod, fchown, lchown. * winsup/cygwin/syscalls.cc (chown_worker): Use previous uid/gid if new uid/gid is -1. New static function with chown functionality. (chown): Call chown_worker with SYMLINK_FOLLOW. (fchown): New function. Call chown_worker with SYMLINK_FOLLOW. (lchown): New function. Call chown_worker with SYMLINK_IGNORE. * cygwin.din: Add symbols for fchown, lchown. * path.cc (symlink): Call `set_file_attribute()' and `SetFileAttributeA()' instead of `chmod()' to set uid/gid correct.
* Simplify constructors and initializers for select_record.Christopher Faylor2000-03-301-6/+6
|
* * fhandler.h (select_record): Explicitly zero elements of this class.Christopher Faylor2000-03-303-2/+18
| | | | | (select_stuff): Ditto. * select.cc (cygwin_select): Eliminate memset zero of sel.
* * Makefile.in: Use default rules when compiling cygrun.o.Christopher Faylor2000-03-285-12/+26
| | | | | | | | * dcrt0.cc (host_dependent_constants::init): Limit non-NT platforms to 32K chunks when copying regions during a fork. * path.cc (symlink_check_one): Add temporary debugging output. Simplify PATH_EXEC test. * syscalls.cc (stat_suffixes): Null terminate this list.
* * path.cc (symlink_check_one): Recognize symlink settings from the mount table.Christopher Faylor2000-03-265-53/+51
| | | | | | | * path.h: Make PATH_SYMLINK an alias for MOUNT_SYMLINK. * syscalls.cc (stat_worker): Use extension search mechanism in path_conv to look for .exe rather than trying to special case it here. * mount.h: Make MOUNT_SYMLINK a real option.
* * environ.cc: Add TMPDIR to the list of environment variables which areChristopher Faylor2000-03-254-3/+15
| | | | | | converted to POSIX format. * sigproc.cc (proc_terminate): Don't attempt to delete when a muto pointer is NULL.
* * syscalls.cc (stat_worker): Set st_nlink to 1 on remote drives.Corinna Vinschen2000-03-192-2/+8
|
* * times.cc: Fix extern declarations for variables that are exported but used byChristopher Faylor2000-03-192-1/+11
| | | | this modules.
* * times.cc: Remove unneeded (and incorrect) externs.Christopher Faylor2000-03-192-3/+4
|
* * dcrt0.cc (host_dependent_constants::init): Eliminate DELETE flag from sharedChristopher Faylor2000-03-182-1/+6
| | | | constant.
* * delqueue.cc (delqueue_list::queue_file): Add some debugging.Christopher Faylor2000-03-184-19/+48
| | | | | | * path.h (class path_conv): Add a char * operator for the most common case. * syscalls.cc (_unlink): Rewrite to use FILE_FLAG_DELETE_ON_CLOSE when possible (i.e., on NT).
* * fhandler.cc (fhandler_base::open): Call set_file_attribute() only if a ↵Corinna Vinschen2000-03-172-1/+9
| | | | file is really created.
* Change ChangeLog entry to more common format.Corinna Vinschen2000-03-161-11/+11
|
* * security.cc (set_process_privileges): Removed `static'.Corinna Vinschen2000-03-167-120/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (get_nt_attribute): Returns uid and gid additionally. Removed call to set_process_privileges(). (get_file_attribute): Returns uid and gid additionally. Don't call ntea if ntsec is ON. (set_nt_attribute): Removed call to set_process_privileges(). Don't call ntea if ntsec is ON. (acl): Removed call to set_process_privileges(). * dcrt0.cc (dll_crt0_1): Calls set_process_privileges() now. * winsup.h: New prototype for set_process_privileges(), changed prototype for get_file_attribute(). * fhandler.cc (get_file_owner): Discarded. (get_file_group): Ditto. (fhandler_disk_file::fstat): Discard calls to get_file_owner() and get_file_group(). * path.cc (path_conv::path_conv): Added debugging output for result of GetVolumeInformation(). (mount_info::conv_to_win32_path): Call backslashify() with pathbuf instead of src_path. * syscalls.cc (chown): Reformatted. (chmod): Replace get_file_owner() and get_file_group() calls by a call to get_file_attribute(). Discard local variable has_acls. Slightly reformatted. (stat_worker): Replaced idiot's (it's me) root dir check by call to rootdir(). Don't call num_entries() on remote drives. Discard local variable has_acls.
* * errno.cc: Map ERROR_NOACCESS to EFAULT.Corinna Vinschen2000-03-152-0/+5
|
* * spawn.cc (spawn_guts): Restore dependency on signal_arrived. It's needed toChristopher Faylor2000-03-152-2/+11
| | | | wake up the WaitForSingleObject.
* Pipe changes throughout suggested by Eric Fifer <EFifer@sanwaint.com>Christopher Faylor2000-03-1515-88/+106
| | | | | | | | | | | | | | | | | | | | | * debug.cc (threadname_init): Pass name of lock as arg 2 of new_muto. * malloc.cc (malloc_init): Ditto. * sigproc.cc (sigproc_init): Ditto. * exceptions.cc (events_init): Ditto. (call_handler): Eliminate special case for hExeced. Report locked thread in debugging output. * fhandler.cc (fhandker_pipe::fhandler_pipe): Propagate device type to base class. * fhandler.h (fhandler_pipe): Ditto. * hinfo.cc (hinfo::build_fhandler): Pass specific type of pipe to constructor. * spawn.cc (spawn_guts): Eliminate dependency on signal when waiting for subprocess. * strace.cc: Remove obsolete #ifdef. * sync.cc (muto::muto): Save the name of the muto. (muto:~muto): Also release the muto. * sync.h: Add a muto name field. * select.cc (peek_pipe): Avoid doing a PeekNamedPipe on the write end of a pipe.
* settimeofday was listed twiceDJ Delorie2000-03-131-2/+2
|