[PATCH] build: shell-container typo in run_command_array [BZ 23991]

Girish Joshi girish946@gmail.com
Mon Mar 2 18:05:00 GMT 2020


>From 82e093b514780ab9b70eb3b1f266e25d7347d770 Mon Sep 17 00:00:00 2001
From: Girish Joshi <girish946@gmail.com>
Date: Mon, 2 Mar 2020 23:15:40 +0530
Subject: [PATCH] Fixed typo in run_command_array() in
 support/shell-container.c [BZ #23991]

---
 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 509e0d69b1..72950bcabf 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)
-- 
2.21.1



More information about the Libc-alpha mailing list