hush: fix two redirection testcase failures
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Jul 2017 20:07:28 +0000 (22:07 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Jul 2017 20:07:28 +0000 (22:07 +0200)
commit2db74610cdf8ffb4f9ed99b62c755377d3cc48ea
tree6835b5b3e84d3d9c5b511053df692db8bfab8792
parent69a5ec9dccfd183cdf6bee7b994336670755cd47
hush: fix two redirection testcase failures

function                                             old     new   delta
save_fds_on_redirect                                 183     256     +73
fcntl_F_DUPFD                                          -      46     +46
restore_redirects                                     74      96     +22
xdup_and_close                                        51      72     +21
setup_redirects                                      196     200      +4
hush_main                                            988     983      -5
static.C                                              12       -     -12
run_pipe                                            1595    1551     -44
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 4/2 up/down: 166/-61)           Total: 105 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c
shell/hush_test/hush-redir/redir3.right
shell/hush_test/hush-redir/redir_to_bad_fd.right