diff options
author | Christopher Faylor <me@cgf.cx> | 2002-05-18 20:27:49 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-05-18 20:27:49 +0000 |
commit | 2701126aaf27767026307246d0085d4c2e00138d (patch) | |
tree | 98b230ac51dd900f0f8a7623fb520c2636e4bd95 /winsup | |
parent | 197f8077369499d4411d8e25628d3ea36da549ca (diff) | |
download | newlib-2701126aaf27767026307246d0085d4c2e00138d.zip newlib-2701126aaf27767026307246d0085d4c2e00138d.tar.gz newlib-2701126aaf27767026307246d0085d4c2e00138d.tar.bz2 |
* path.cc (path_conv::check): Always set executable bit for executable
extension.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 4 | ||||
-rw-r--r-- | winsup/cygwin/path.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.h | 2 |
4 files changed, 10 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index deac45f..28a22d5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2002-05-18 Christopher Faylor <cgf@redhat.com> + + * path.cc (path_conv::check): Always set executable bit for executable + extension. + 2002-05-17 Christopher Faylor <cgf@redhat.com> * fhandler.cc (fhandler_base::lseek): Avoid calling SetFilePointer with diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 6481350..ea9cab3 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -689,7 +689,9 @@ fhandler_tty_slave::read (void *ptr, size_t len) if (!(get_ttyp ()->ti.c_lflag & ICANON)) { - vmin = min (INP_BUFFER_SIZE, get_ttyp ()->ti.c_cc[VMIN]); + vmin = get_ttyp ()->ti.c_cc[VMIN]; + if (vmin > INP_BUFFER_SIZE) + vmin = INP_BUFFER_SIZE; vtime = get_ttyp ()->ti.c_cc[VTIME]; if (vmin < 0) vmin = 0; if (vtime < 0) vtime = 0; diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index ebf3571..3c2be69 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -787,7 +787,7 @@ out: if (saw_symlinks) set_has_symlinks (); - if (!error && !(path_flags & (PATH_ALL_EXEC | PATH_NOTEXEC))) + if (!error && !(path_flags & PATH_ALL_EXEC)) { const char *p = strchr (path, '\0') - 4; if (p >= path && diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index cad2c4a..55284d1 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -95,7 +95,7 @@ public: return thread2signal ? thread2signal->sigs[sig] : sigs[sig]; } - inline void copysigs (_pinfo *p) {sigs = p->sigs;} + inline void copysigs (_pinfo *p) {memcpy (sigs, p->sigs, sizeof (sigs));} inline sigset_t& getsigmask () { |