diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-04-12 20:45:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-04-12 20:45:32 +0000 |
commit | a4dec43d316b2e5dc8855d806bc5ab2ec5eef50d (patch) | |
tree | 3aa9abce61c9b6eebf93b92da1e9dd9bd3b4c013 /libio/oldiopopen.c | |
parent | da240c6be04fe89533504d95891f20550169fc73 (diff) | |
download | glibc-a4dec43d316b2e5dc8855d806bc5ab2ec5eef50d.tar glibc-a4dec43d316b2e5dc8855d806bc5ab2ec5eef50d.tar.gz glibc-a4dec43d316b2e5dc8855d806bc5ab2ec5eef50d.tar.bz2 glibc-a4dec43d316b2e5dc8855d806bc5ab2ec5eef50d.zip |
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>.
Diffstat (limited to 'libio/oldiopopen.c')
-rw-r--r-- | libio/oldiopopen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libio/oldiopopen.c b/libio/oldiopopen.c index 815074f3bf..1e6f13358f 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; } |