diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-09 02:53:44 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-09 02:53:44 +0000 |
commit | 164a681ca55419ec2cc7c9ad45f720f4a79cada1 (patch) | |
tree | 9344d3a28783e8c4bc55e1d616ca36746910bf3b /winsup/cygwin/path.cc | |
parent | 65bb926f51a5cac83b63e98e81121ece36d57454 (diff) | |
download | cygnal-164a681ca55419ec2cc7c9ad45f720f4a79cada1.tar.gz cygnal-164a681ca55419ec2cc7c9ad45f720f4a79cada1.tar.bz2 cygnal-164a681ca55419ec2cc7c9ad45f720f4a79cada1.zip |
* dtable.cc (set_std_handle): Use std_consts array to control SetStdHandle
settings.
(dtable::fixup_after_fork): Ditto.
* exceptions.cc (set_sig_errno): Remove some debugging output.
* path.cc (path_conv::check): Don't OR need_directory with flags sent to
symlink_info::check.
(symlink_info::check): Use PATH_ALL_EXEC to determine when a file is
executable.
* path.h (path_types): Add PATH_ALL_EXEC.
(isexec): Use PATH_ALL_EXEC so that cygexec types will be considered
executable.
* pinfo.h (_pinfo): Add a process handle that is kept open throughout the life
of a cygwin pid.
* sigproc.cc (proc_exists): Remove hopefully obsolete stuff.
(proc_subproc): Set up process handle that is kept open throughout the life of
a cygwin pid. Reorganize PROC_WAIT stuff to use common code.
(proc_terminate): Close pid lifetime process handle.
(checkstate): Cleanup.
(stopped_or_terminated): Move zombie cleanup.
(remove_zombie): To here.
* spawn.cc (spawn_guts): Reorganize reparenting code for 1247th time.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index fb8bcd5dd..41a0a7f16 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -257,7 +257,7 @@ path_conv::check (const char *src, unsigned opt, else { suff = suffixes; - sym.pflags = path_flags | need_directory; + sym.pflags = path_flags; } int len = sym.check (path_copy, suff); @@ -2294,7 +2294,7 @@ symlink_info::check (const char *in_path, const suffix_info *suffixes) else { /* Not a symlink, see if executable. */ - if (!(pflags & (PATH_EXEC | PATH_CYGWIN_EXEC)) && got >= 2 && + if (!(pflags & PATH_ALL_EXEC) && got >= 2 && ((cookie_buf[0] == '#' && cookie_buf[1] == '!') || (cookie_buf[0] == ':' && cookie_buf[1] == '\n') || (cookie_buf[0] == 'M' && cookie_buf[1] == 'Z'))) |