[glibc] Fixed typo in run_command_array() in support/shell-container.c

DJ Delorie dj@sourceware.org
Mon Mar 2 22:27:00 GMT 2020


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=542160f0b6a7c26758c9575a8876f6624a5dd65f

commit 542160f0b6a7c26758c9575a8876f6624a5dd65f
Author: Girish Joshi <girish946@gmail.com>
Date:   Mon Mar 2 15:19:29 2020 -0500

    Fixed typo in run_command_array() in support/shell-container.c
    
    https://sourceware.org/bugzilla/show_bug.cgi?id=23991

Diff:
---
 support/shell-container.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/shell-container.c b/support/shell-container.c
index 509e0d6..72950bc 100644
--- a/support/shell-container.c
+++ b/support/shell-container.c
@@ -228,7 +228,7 @@ run_command_array (char **argv)
       if (new_stderr != 2)
 	{
 	  dup2 (new_stderr, 2);
-	  close (new_stdout);
+	  close (new_stderr);
 	}
 
       if (builtin_func != NULL)



More information about the Glibc-cvs mailing list