]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 12 Apr 2000 20:45:32 +0000 (20:45 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 12 Apr 2000 20:45:32 +0000 (20:45 +0000)
* 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>.

ChangeLog
libio/iopopen.c
libio/oldiopopen.c

index 1b0f1be61611b9b5b7cb121254fc156c64e32e62..a29c08fff11b985bec8171f75b217cb96e094f3a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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
        function interface.
 
index 9d472fa212458a3f1a7be1735c481a6d32495954..3edbba4bf7b58791e3ad5719bb7ac381ea538d35 100644 (file)
@@ -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;
     }
index 815074f3bf1ac39755f0d9df3f4150acdc250150..1e6f13358f1e4e761448f37d9a1458578f901246 100644 (file)
@@ -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;
     }