c5d972
commit 542160f0b6a7c26758c9575a8876f6624a5dd65f
c5d972
Author: Girish Joshi <girish946@gmail.com>
c5d972
Date:   Mon Mar 2 15:19:29 2020 -0500
c5d972
c5d972
    Fixed typo in run_command_array() in support/shell-container.c
c5d972
    
c5d972
    https://sourceware.org/bugzilla/show_bug.cgi?id=23991
c5d972
c5d972
diff --git a/support/shell-container.c b/support/shell-container.c
c5d972
index 9bd90d3f60529079..e87ac5cf1baa84e5 100644
c5d972
--- a/support/shell-container.c
c5d972
+++ b/support/shell-container.c
c5d972
@@ -228,7 +228,7 @@ run_command_array (char **argv)
c5d972
       if (new_stderr != 2)
c5d972
 	{
c5d972
 	  dup2 (new_stderr, 2);
c5d972
-	  close (new_stdout);
c5d972
+	  close (new_stderr);
c5d972
 	}
c5d972
 
c5d972
       if (builtin_func != NULL)