Jim Meyering
22999697b8
mktemp, sort, tac: don't use undefined after mkstemp failure
...
When mkstemp fails, the template buffer may have undefined
contents, so we must not print it.
* src/sort.c (create_temp_file): Use temp_dir, not "file"
when diagnosing failed mkstemp, because "file" may be undefined.
* tests/misc/sort-merge: Adjust for new expected output.
Jeph Cowan and Ralf Wildenhues reported the test failure:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14235/focus=14257
* src/tac.c (copy_to_temp): Don't use template buffer after
failed mkstemp call, since its contents may be undefined.
* tests/misc/tac (pipe-bad-tmpdir): New test for the above.
* src/mktemp.c (main): Save a copy of the template string,
solely for use in case mkstemp fails.
* tests/misc/mktemp (pipe-bad-tmpdir): New test for the above.
2008-08-14 14:37:37 +02:00
..
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-16 13:42:01 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-06-12 21:03:05 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-07-11 14:03:23 +02:00
2008-08-09 16:55:45 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-06 14:16:45 +02:00
2008-05-27 13:48:32 +02:00
2008-06-02 14:40:26 +02:00
2008-06-08 12:11:47 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-01 16:55:11 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-08-14 14:37:37 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-06-13 23:06:03 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-07-15 08:30:38 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-06-19 09:20:31 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-07-27 15:25:27 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-17 08:50:41 +02:00
2008-08-14 14:37:37 +02:00
2008-05-27 13:48:32 +02:00
2008-06-08 12:11:47 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-08-14 14:37:37 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-05-27 13:48:32 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-06-10 08:27:52 +02:00
2008-06-27 17:46:52 +02:00
2008-05-17 08:27:58 +02:00
2008-06-06 14:16:45 +02:00
2008-06-06 14:16:45 +02:00
2008-06-10 08:32:52 +02:00
2008-06-06 14:16:45 +02:00
2008-06-06 14:16:45 +02:00
2008-06-06 14:16:45 +02:00
2008-06-06 14:16:45 +02:00
2008-06-30 10:23:17 +02:00
2008-06-06 14:16:45 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-27 13:48:32 +02:00
2008-06-08 12:11:47 +02:00
2008-06-08 12:11:47 +02:00