script: make it work even if fd 0 is closed
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 Mar 2014 11:34:53 +0000 (12:34 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 16 Mar 2014 11:34:53 +0000 (12:34 +0100)
commit438b4ac2860f4aec5b5fb82c47f75a0cb80d9cb4
tree83dd96e62dfe975fa9ea3f738fe32e220862b2fa
parent29f352604868c5d17c81948ea30e332491cecada
script: make it work even if fd 0 is closed

Testcase:
script -q -c "echo hey" /dev/null 0>&-

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/getpty.c
util-linux/script.c