busybox/shell/hush_test/hush-redir/redir_children_should_not_see_saved_fd_1.tests
Denys Vlasenko 9acd63c92c 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>
2018-03-28 18:35:07 +02:00

7 lines
230 B
Plaintext
Executable File

# The "find" should not see "saved" (duplicated) fd #1
# Explicitly use bbox find, since other implementations of "find"
# may open other descriptors as well.
busybox find /proc/self/fd >tmp_$$.out
cat tmp_$$.out
rm -f tmp_$$.out