[Patch] Fixing the PROCESS_DUP_HANDLE security hole.

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Wed Dec 22 16:21:00 GMT 2004


On Wed, Dec 22, 2004 at 11:13:30AM -0500, Pierre A. Humblet wrote:
>I tried my spawn(P_DETACH) example (updated since yesterday)
>with the latest snapshot, this time on NT. 
>
>#include <stdio.h>
>#include <unistd.h>
>#include <process.h>
>
>main()
>{
>    spawnl(_P_DETACH, "/c/WINNT/system32/notepad", "notepad", 0);
>    printf("Spawn done\n");
>    /* Keep working */
>    sleep(10);
>    printf("Exiting\n");
>}
>
>New problem is with gcc (gcc version 3.3.3 (cygwin special))
>~/try> uname -a
>CYGWIN_NT-4.0 usched40576 1.5.12(0.116/4/2) 2004-11-10 08:34 i686 unknown unknown Cygwin
>~/try> gcc -o try_spawn try_spawn.c

This is unrelated to the process changes.  Corinna checked in a patch
for this at 11:31 GMT.

cgf



More information about the Cygwin-patches mailing list