Files
coreutils/src
Jim Meyering 2679dfb639 'sort' race condition fixes.
Defend against a DoS attack where someone else creates a
temporary file with the same name as ours.  Use mkstemp to do
this, supplying our own mkstemp if the system doesn't have one.

Also, fix a race condition during cleanup on hosts without
sigaction.


(NAME_MAX_IN_DIR): Remove.
(sigprocmask, sigset_t): New macros, defined only on older hosts.
(caught_signals): New var.
(xtmpfopen, tempname): Removed.
(create_temp_file): New function, combining the functions of the old
xtmpfopen and tempname.  All callers changed.
Use mkstemp to create the file.
(sighandler): On hosts without sigaction, ignore signals while
cleaning up, instead of letting them interrupt cleanup.
(main): Initialize caught_signals.  On hosts with sigaction, block all
caught signals while handling one.  Remove duplicate code.
2001-03-02 02:58:23 +00:00
..
1997-06-25 17:05:56 +00:00
1999-04-13 14:44:33 +00:00
2000-05-07 14:49:06 +00:00
2000-11-26 23:10:55 +00:00
2001-01-07 09:21:34 +00:00
2000-11-23 15:04:17 +00:00
2000-12-16 18:52:58 +00:00
2000-05-07 14:49:06 +00:00
2001-01-17 09:42:36 +00:00
2000-08-19 11:09:03 +00:00
1998-04-06 08:14:58 +00:00
1998-02-06 20:48:10 +00:00
2001-01-17 10:30:25 +00:00
2000-05-07 14:51:07 +00:00
2000-05-07 14:51:49 +00:00
2000-05-07 14:52:16 +00:00
2000-08-07 13:27:24 +00:00
2000-05-07 14:53:15 +00:00
2000-05-07 14:53:15 +00:00
2000-12-02 22:16:41 +00:00
2000-11-18 13:10:40 +00:00
2000-05-07 14:55:15 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
1993-06-16 15:24:57 +00:00
2000-05-07 14:55:15 +00:00
2000-05-07 14:55:15 +00:00
2000-11-19 15:15:38 +00:00
2000-05-07 14:57:24 +00:00
2000-05-07 14:57:52 +00:00
2000-10-16 08:10:58 +00:00
2001-01-17 10:29:56 +00:00
2001-03-02 02:58:23 +00:00
2000-06-24 07:37:55 +00:00
2001-01-17 10:28:46 +00:00
2001-01-08 08:34:52 +00:00
2000-08-14 21:40:30 +00:00
2000-05-07 14:46:33 +00:00
2001-01-17 09:42:36 +00:00
2000-05-07 14:46:33 +00:00
2001-02-06 09:56:22 +00:00
2000-05-07 14:46:33 +00:00