ash,hush: fix "saved" redirected fds still visible in children
authorDenys Vlasenko <vda.linux@googlemail.com>
Wed, 28 Mar 2018 16:35:07 +0000 (18:35 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 1 Apr 2018 11:04:11 +0000 (13:04 +0200)
commitb1aa377a3f23e5e547cd142bb82a81b811c788a2
treed7e8b99fcfca0a3e558c48af6021ce5fab6fef1a
parent2afdcc77ccdd60f2632d2ee79c47517536a14a07
ash,hush: fix "saved" redirected fds still visible in children

Based on a patch by Mark Marshall <mark.marshall@omicronenergy.com>

function                                             old     new   delta
dup_CLOEXEC                                            -      49     +49
fcntl_F_DUPFD                                         46       -     -46

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
14 files changed:
shell/ash.c
shell/ash_test/ash-redir/redir_children_should_not_see_saved_fd_1.right [new file with mode: 0644]
shell/ash_test/ash-redir/redir_children_should_not_see_saved_fd_1.tests [new file with mode: 0755]
shell/ash_test/ash-redir/redir_children_should_not_see_saved_fd_2.right [new file with mode: 0644]
shell/ash_test/ash-redir/redir_children_should_not_see_saved_fd_2.tests [new file with mode: 0755]
shell/ash_test/ash-redir/redir_children_should_not_see_saved_fd_3.right [new file with mode: 0644]
shell/ash_test/ash-redir/redir_children_should_not_see_saved_fd_3.tests [new file with mode: 0755]
shell/hush.c
shell/hush_test/hush-redir/redir_children_should_not_see_saved_fd_1.right [new file with mode: 0644]
shell/hush_test/hush-redir/redir_children_should_not_see_saved_fd_1.tests [new file with mode: 0755]
shell/hush_test/hush-redir/redir_children_should_not_see_saved_fd_2.right [new file with mode: 0644]
shell/hush_test/hush-redir/redir_children_should_not_see_saved_fd_2.tests [new file with mode: 0755]
shell/hush_test/hush-redir/redir_children_should_not_see_saved_fd_3.right [new file with mode: 0644]
shell/hush_test/hush-redir/redir_children_should_not_see_saved_fd_3.tests [new file with mode: 0755]