dd: avoid unnecessary, but harmless close_stdout call.
authorJim Meyering <meyering@redhat.com>
Fri, 7 Mar 2008 11:21:37 +0000 (12:21 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 7 Mar 2008 11:21:37 +0000 (12:21 +0100)
commit381e69eace06d863a3dcd9d9f3a8f61fb449be0b
treeef60ce64d52b4ab03e0aecc39e3e3b177bc57647
parentc58c2ea3e49d3491af2a2734aa10fc059d843667
dd: avoid unnecessary, but harmless close_stdout call.

* src/dd.c (close_stdout_required): New global.
(maybe_close_stdout): New function.
(main): Set the global.
Reported by Ulrich Drepper in http://bugzilla.redhat.com/436368
src/dd.c