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