summaryrefslogtreecommitdiff
path: root/tests/misc/mktemp
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-11-05 16:26:19 +0100
committerJim Meyering <meyering@redhat.com>2009-11-05 16:32:52 +0100
commit22e4276ed1b3ef67446e8f003b7bcf7753cbc9bc (patch)
treed291bdd8c0c4aa720c07a500ed623f3bd31fe10b /tests/misc/mktemp
parent25d2460ae3dcbfb557016bbac6e8568e258caed3 (diff)
downloadcoreutils-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