dd: detect closed stderr
commit31fa922e5765a24786061a4dfbd048869457cf84
authorEric Blake <ebb9@byu.net>
Fri, 28 Aug 2009 16:59:16 +0000 (28 10:59 -0600)
committerEric Blake <ebb9@byu.net>
Fri, 28 Aug 2009 18:56:51 +0000 (28 12:56 -0600)
tree906654cadaeaa4fc23dbb0120ab7ffa6558fe4c6
parent59a6ddfca34bea0d657cf4d9f56aa6d5bab4a7a1
dd: detect closed stderr

* src/dd.c (maybe_close_stdout): Always flush stderr; regression
introduced in commit 381e69ea.
* tests/misc/close-stdout (p): Use consistent style.
* tests/dd/stderr: New test, borrowing from misc/close-stdout.
* tests/Makefile.am (TESTS): Run it.
* NEWS: Mention this.
NEWS
src/dd.c
tests/Makefile.am
tests/dd/stderr [new file with mode: 0755]
tests/misc/close-stdout