Eric Blake
dde83c27b4
mktemp: use more robust means to avoid double-close of stdout
...
Reverts earlier patch - fflush() can succeed but fclose() fail for
some cases of write failures, and we want to catch those.
* src/mktemp.c (stdout_closed): New variable.
(maybe_close_stdout): New function, borrowed from dd.c.
(main): Track whether stdout has been closed.
2009-11-05 13:12:35 -07:00
..
2009-06-17 14:54:29 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-08-25 09:21:00 +02:00
2009-09-23 14:33:40 +01:00
2009-10-29 07:31:23 -06:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-08-25 09:21:00 +02:00
2009-09-23 14:33:40 +01:00
2009-10-23 16:24:05 -06:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-10-10 15:16:52 -06:00
2009-08-29 00:24:49 +01:00
2009-08-25 09:21:00 +02:00
2008-11-20 10:21:52 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-06-23 22:33:15 +02:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-10-02 10:58:05 -06:00
2009-09-21 12:37:57 +01:00
2009-06-23 22:33:15 +02:00
2009-11-05 08:37:12 +01:00
2009-10-28 17:01:29 +00:00
2009-10-27 19:55:37 -06:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-08-25 09:21:00 +02:00
2009-10-08 20:30:08 -06:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-08-25 09:21:00 +02:00
2009-06-23 22:33:15 +02:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-06-17 14:54:29 +01:00
2009-09-21 12:37:57 +01:00
2009-10-23 06:29:54 -06:00
2009-09-21 12:37:57 +01:00
2009-10-09 14:33:10 +02:00
2009-10-18 10:26:15 +02:00
2009-10-21 16:56:00 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-11-05 13:12:35 -07:00
2009-09-21 12:37:57 +01:00
2009-10-28 21:12:41 -06:00
2009-09-21 12:37:57 +01:00
2009-10-28 21:12:41 -06:00
2009-09-23 14:33:40 +01:00
2009-02-28 11:06:35 +01:00
2009-06-23 22:33:15 +02:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-10-28 06:24:52 -06:00
2009-10-28 17:01:29 +00:00
2009-06-23 22:33:15 +02:00
2009-03-02 09:10:17 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-11-05 08:32:31 +01:00
2009-09-11 14:08:51 +02:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-10-29 07:31:23 -06:00
2009-09-21 12:37:57 +01:00
2009-10-29 07:31:23 -06:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-10-28 16:37:07 +00:00
2009-10-26 21:30:28 -06:00
2009-09-23 14:33:40 +01:00
2009-10-28 21:12:41 -06:00
2009-10-21 16:56:00 +01:00
2009-09-21 12:37:57 +01:00
2009-11-05 08:32:31 +01:00
2009-08-25 09:21:00 +02:00
2009-09-21 12:37:57 +01:00
2009-10-22 09:11:24 +02:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-10-25 23:28:38 +00:00
2009-10-23 06:29:54 -06:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-22 12:21:00 +01:00
2009-09-21 12:37:57 +01:00
2009-09-23 14:33:40 +01:00
2009-08-25 09:21:00 +02:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00
2009-09-21 12:37:57 +01:00