]> sourceware.org Git - newlib-cygwin.git/commitdiff
* path.cc (path_conv::check): Always set executable bit for executable
authorChristopher Faylor <me@cgf.cx>
Sat, 18 May 2002 20:27:49 +0000 (20:27 +0000)
committerChristopher Faylor <me@cgf.cx>
Sat, 18 May 2002 20:27:49 +0000 (20:27 +0000)
extension.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/path.cc
winsup/cygwin/pinfo.h

index deac45f448a2743282169d195fdee6d31ac54e8a..28a22d5084eb84083440905083439f66b9756ba0 100644 (file)
@@ -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
index 6481350121c8e633f5d2d2ad153cf668e53f34d9..ea9cab30b696a41a51bf4978bc87a66ef20ac734 100644 (file)
@@ -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;
index ebf35713e956f54ed3feca2f537bed2dcd08b471..3c2be696fcb1ed546737c85c64570b1f5ae6a7c3 100644 (file)
@@ -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 &&
index cad2c4a5b5f623255da827de5e561ceb5dad9e31..55284d15bdbf3786b445ac4d08a844d08b36ca31 100644 (file)
@@ -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 ()
   {
This page took 0.041104 seconds and 5 git commands to generate.