diff options
author | Jim Meyering <meyering@redhat.com> | 2009-11-05 16:26:19 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-11-05 16:32:52 +0100 |
commit | 22e4276ed1b3ef67446e8f003b7bcf7753cbc9bc (patch) | |
tree | d291bdd8c0c4aa720c07a500ed623f3bd31fe10b /tests/misc/mktemp | |
parent | 25d2460ae3dcbfb557016bbac6e8568e258caed3 (diff) | |
download | coreutils-22e4276ed1b3ef67446e8f003b7bcf7753cbc9bc.tar.xz |
mktemp: don't try to close stdout twice
* src/mktemp.c (main): Rather than calling close_stream (which would
make atexit-called close_stdout try to close it a second time),
check for write failure via ferror and fflush.
Diffstat (limited to 'tests/misc/mktemp')
0 files changed, 0 insertions, 0 deletions