Bug 23991

Summary: shell-container typo in run_command_array
Product: glibc Reporter: Carlos O'Donell <carlos>
Component: buildAssignee: dj <dj>
Status: RESOLVED FIXED    
Severity: normal CC: carlos, dj, fweimer
Priority: P2 Flags: fweimer: security-
Version: 2.30   
Target Milestone: 2.32   
Host: Target:
Build: Last reconfirmed:

Description Carlos O'Donell 2018-12-14 20:32:08 UTC
In support/shell-container.c (run_command_arra):

228       if (new_stderr != 2)
229         {
230           dup2 (new_stderr, 2);
231           close (new_stdout);
232         }

This looks like a typo. We should close new_stderr after the dup2.
Comment 1 dj@redhat.com 2020-03-02 22:33:10 UTC
Fixed in 542160f0b6a7c26758c9575a8876f6624a5dd65f