]> sourceware.org Git - newlib-cygwin.git/commitdiff
* sigproc.cc (proc_subproc): Restrict permissions on ppid_handle.
authorChristopher Faylor <me@cgf.cx>
Sun, 28 Sep 2003 15:46:00 +0000 (15:46 +0000)
committerChristopher Faylor <me@cgf.cx>
Sun, 28 Sep 2003 15:46:00 +0000 (15:46 +0000)
* devices.shilka (device::parse): Restore check for tty in unit handling, but
without the previous typo.
* devices.cc: Regenerate.
* devices.h (DEV_CYGDRIVE_MAJOR): Change major number to one used by linux for
"user-mode virtual block device".

winsup/cygwin/ChangeLog
winsup/cygwin/devices.cc
winsup/cygwin/devices.h
winsup/cygwin/devices.shilka
winsup/cygwin/sigproc.cc

index 83c19a2edb2688ba2024f58a556f4e2399892cd7..7618b5149c504299f2a109034f64505b54dfd6eb 100644 (file)
@@ -1,3 +1,15 @@
+2003-09-28  Pierre Humblet <pierre.humblet@ieee.org>
+
+       * sigproc.cc (proc_subproc): Restrict permissions on ppid_handle.
+
+2003-09-28  Christopher Faylor  <cgf@redhat.com>
+
+       * devices.shilka (device::parse): Restore check for tty in unit
+       handling, but without the previous typo.
+       * devices.cc: Regenerate.
+       * devices.h (DEV_CYGDRIVE_MAJOR): Change major number to one used by
+       linux for "user-mode virtual block device".
+
 2003-09-28  Corinna Vinschen  <corinna@vinschen.de>
 
        * devices.h: Move a few device major numbers.  Fix typo of FH_UDP.
index 0131b31606cd03790e737fb501007e2d93b475f4..ce2176ec7ff73016ba2d5726ccc77ddf936b5bd4 100644 (file)
@@ -1195,7 +1195,7 @@ device::parse (const char *s)
       if (++len < prior_len)
        {
          dev = KR_find_keyword (s, len);
-         if (!dev || (!dev->upper && !dev->devn == FH_TTY))
+         if (!dev || (!dev->upper && dev->devn != FH_TTY))
            dev = NULL;
          else
            {
index 7e7cc92df342f9c50cdcb7447ebfd18d91345000..d133c8fa5dc86cd88ea9692961b63d542c7f6ef3 100644 (file)
@@ -100,7 +100,7 @@ enum fh_devices
   FH_URANDOM = FHDEV (1, 9),
   FH_OSS_DSP = FHDEV (14, 3),
 
-  DEV_CYGDRIVE_MAJOR = 29,
+  DEV_CYGDRIVE_MAJOR = 98,
   FH_CYGDRIVE= FHDEV (DEV_CYGDRIVE_MAJOR, 0),
   FH_CYGDRIVE_A= FHDEV (DEV_CYGDRIVE_MAJOR, 'a'),
   FH_CYGDRIVE_Z= FHDEV (DEV_CYGDRIVE_MAJOR, 'z'),
index f029c71e384ca82af67ca77c1b07ebef4024075a..b7f1dfdf58cd47bcef99b4d65b2d01ee29517623 100644 (file)
@@ -326,7 +326,7 @@ device::parse (const char *s)
       if (++len < prior_len)
        {
          dev = KR_find_keyword (s, len);
-         if (!dev || !dev->upper)
+         if (!dev || (!dev->upper && dev->devn != FH_TTY))
            dev = NULL;
          else
            {
index b616ac1c3cfc44ce17c01588207ee99381250677..680b12dc0052e5e072dd3e59c830ca68b378d9bb 100644 (file)
@@ -326,7 +326,7 @@ proc_subproc (DWORD what, DWORD val)
       ProtectHandle1 (vchild->pid_handle, pid_handle);
 
       if (!DuplicateHandle (hMainProc, hMainProc, vchild->hProcess, &vchild->ppid_handle,
-                           0, TRUE, DUPLICATE_SAME_ACCESS))
+                           SYNCHRONIZE | PROCESS_DUP_HANDLE, TRUE, 0))
        system_printf ("Couldn't duplicate my handle<%p> for pid %d, %E", hMainProc, vchild->pid);
       vchild->ppid = myself->pid;
       vchild->uid = myself->uid;
This page took 0.044238 seconds and 5 git commands to generate.