Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-05-19 00:27:49 +0400
committerChristopher Faylor <me@cgf.cx>2002-05-19 00:27:49 +0400
commit2701126aaf27767026307246d0085d4c2e00138d (patch)
tree98b230ac51dd900f0f8a7623fb520c2636e4bd95
parent197f8077369499d4411d8e25628d3ea36da549ca (diff)
* path.cc (path_conv::check): Always set executable bit for executable
extension.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_tty.cc4
-rw-r--r--winsup/cygwin/path.cc2
-rw-r--r--winsup/cygwin/pinfo.h2
4 files changed, 10 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index deac45f44..28a22d508 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 648135012..ea9cab30b 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 ebf35713e..3c2be696f 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 cad2c4a5b..55284d15b 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 ()
{