mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
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 <bartv@redhat.com>.
This commit is contained in:
@ -1,5 +1,10 @@
|
|||||||
2000-04-12 Ulrich Drepper <drepper@redhat.com>
|
2000-04-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* 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 <bartv@redhat.com>.
|
||||||
|
|
||||||
* sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
|
* sysdeps/arm/dl-machine.h (RTLD_START): Rewrite for new init
|
||||||
function interface.
|
function interface.
|
||||||
|
|
||||||
|
@ -135,6 +135,8 @@ _IO_new_proc_open (fp, command, mode)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
_IO_close (pipe_fds[0]);
|
||||||
|
_IO_close (pipe_fds[1]);
|
||||||
__set_errno (EINVAL);
|
__set_errno (EINVAL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -136,6 +136,8 @@ _IO_old_proc_open (fp, command, mode)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
_IO_close (pipe_fds[0]);
|
||||||
|
_IO_close (pipe_fds[1]);
|
||||||
__set_errno (EINVAL);
|
__set_errno (EINVAL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user