[PATCH 2/2] posix: Clear close-on-exec for posix_spawn adddup2 (BZ#23640)

Florian Weimer fweimer@redhat.com
Wed Jan 2 11:07:00 GMT 2019


* adhemerval zanella:

> diff --git a/posix/tst-spawn.c b/posix/tst-spawn.c
> index 638ba1ba55..2354417020 100644
> --- a/posix/tst-spawn.c
> +++ b/posix/tst-spawn.c
> @@ -40,17 +40,19 @@ static int restart;
>  static char *name1;
>  static char *name2;
>  static char *name3;
> +static char *name5;
>  
>  /* Descriptors for the temporary files.  */
>  static int temp_fd1 = -1;
>  static int temp_fd2 = -1;
>  static int temp_fd3 = -1;
> +static int temp_fd5 = -1;

What happened to name4 and temp_fd4?  fe4string is not used, either.

Thanks,
Florian



More information about the Libc-alpha mailing list