From: Ulrich Drepper Date: Wed, 12 Apr 2000 20:45:32 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc_2-1-91~648 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4dec43d316b2e5dc8855d806bc5ab2ec5eef50d;p=thirdparty%2Fglibc.git Update. * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the mode is invalid. * libio/oldiopopen.c (_IO_old_proc_open): Likewise. Patch by Bart Veer . --- diff --git a/ChangeLog b/ChangeLog index 1b0f1be6161..a29c08fff11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2000-04-12 Ulrich Drepper + * libio/iopopen.c (_IO_new_proc_open): Close pipes in case the + mode is invalid. + * libio/oldiopopen.c (_IO_old_proc_open): Likewise. + Patch by Bart Veer . + * sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init function interface. diff --git a/libio/iopopen.c b/libio/iopopen.c index 9d472fa2124..3edbba4bf7b 100644 --- a/libio/iopopen.c +++ b/libio/iopopen.c @@ -135,6 +135,8 @@ _IO_new_proc_open (fp, command, mode) } else { + _IO_close (pipe_fds[0]); + _IO_close (pipe_fds[1]); __set_errno (EINVAL); return NULL; } diff --git a/libio/oldiopopen.c b/libio/oldiopopen.c index 815074f3bf1..1e6f13358f1 100644 --- a/libio/oldiopopen.c +++ b/libio/oldiopopen.c @@ -136,6 +136,8 @@ _IO_old_proc_open (fp, command, mode) } else { + _IO_close (pipe_fds[0]); + _IO_close (pipe_fds[1]); __set_errno (EINVAL); return NULL; }